Built motion from commit a5685af.|0.0.128
[motion.git] / public / assets / plugins / square / js / Dialogs.js
index 5a04240..19a5f3e 100644 (file)
@@ -1,949 +1 @@
-'use strict';
-/**
- * $Id: Dialogs.js,v 1.5 2013-01-29 17:23:31 gaudenz Exp $
- * Copyright (c) 2006-2012, JGraph Ltd
- */
-/**
- * Constructs a new dialog.
- */
-
-function createCheckbox(value) {
-       var input = document.createElement('input');
-       input.setAttribute('type', 'checkbox');
-       if (value) {
-               input.setAttribute('checked', true);
-       }
-       return input;
-}
-
-function createDropdownFromApi(path, value, option_name, option_value, editorUi, paginated) {
-       var req = new XMLHttpRequest();
-       req.open('GET', path, false); // `false` makes the request synchronous
-       req.setRequestHeader('Authorization', 'Bearer ' + editorUi.editor.data.token);
-       req.send(null);
-       var res = [];
-       if (req.status === 200) {
-               res = JSON.parse(req.response);
-       }
-       var input = document.createElement('select');
-       var option = document.createElement('option');
-       option.text = '-- None --';
-       option.value = '0';
-       input.appendChild(option);
-       var selectValues = paginated ? res.rows : res;
-       selectValues.forEach(function(elem) {
-               option = document.createElement('option');
-               option.text = elem[option_name];
-               option.value = elem[option_value];
-               option.selected = (elem[option_value] == value);
-               input.appendChild(option);
-       });
-       input.className = 'form-control select2';
-
-       return input;
-}
-
-function createGroupedDropdownFromApi(path, value, option_name, option_value, editorUi, paginated, associationField) {
-       var req = new XMLHttpRequest();
-       req.open('GET', path, false); // `false` makes the request synchronous
-       req.setRequestHeader('Authorization', 'Bearer ' + editorUi.editor.data.token);
-       req.send(null);
-       var res = [];
-       if (req.status === 200) {
-               res = JSON.parse(req.response);
-       }
-       var input = document.createElement('select');
-       var option = document.createElement('option');
-       option.text = '-- None --';
-       option.value = '0';
-       input.appendChild(option);
-       var selectValues = paginated ? res.rows : res;
-       var mainFilter = {};
-       var groupFilter = {};
-       mainFilter[associationField] = null;
-       var mainValues = _.filter(selectValues, mainFilter);
-       var groupValues = {};
-       mainValues.forEach(function(elem) {
-               option = document.createElement('option');
-               option.className = 'select-group-father';
-               option.text = elem[option_name].toUpperCase();
-               option.value = elem[option_value];
-               option.selected = (elem[option_value] == value);
-               input.appendChild(option);
-               groupFilter[associationField] = elem[option_value];
-               groupValues = _.filter(selectValues, groupFilter);
-               groupValues.forEach(function(elem) {
-                       option = document.createElement('option');
-                       option.className = 'select-group-son';
-                       option.text = '-' + _.capitalize(elem[option_name]);
-                       option.value = elem[option_value];
-                       option.selected = (elem[option_value] == value);
-                       input.appendChild(option);
-               });
-       })
-       input.className = 'form-control select2';
-
-       return input;
-}
-
-function createDropdownFromArray(array, value) {
-       var input = document.createElement('select');
-
-       for (var item in array) {
-               var option = document.createElement('option');
-               option.text = array[item];
-               option.value = item;
-               if (value > 0 || value != '')
-                       option.selected = (value === item) ? true : false;
-
-               input.appendChild(option);
-       }
-
-       input.className = 'form-control select2';
-
-       return input;
-}
-
-function Dialog(editorUi, elt, w, h, modal, closable, onClose) {
-       var dx = 0;
-
-       if (mxClient.IS_IE && document.documentMode != 9) {
-               dx = 60;
-       }
-
-       w += dx;
-       h += dx;
-
-       var left = Math.max(0, Math.round((document.body.scrollWidth - w) / 2));
-       var top = Math.max(0, Math.round((Math.max(document.body.scrollHeight,
-               document.documentElement.scrollHeight) - h) / 3));
-
-       var div = editorUi.createDiv('geDialog');
-       div.className = 'modal fade in center';
-       div.style.display = 'block';
-       div.style.paddingRight = '12px';
-       // div.style.width = w + 'px';
-       // div.style.height = h + 'px';
-       // div.style.left = left + 'px';
-       // div.style.top = top + 'px';
-
-       var divModalDialog = editorUi.createDiv('geModalDialog');
-       divModalDialog.className = 'modal-dialog';
-
-       divModalDialog.appendChild(elt);
-       div.appendChild(divModalDialog);
-
-       if (this.bg == null) {
-               this.bg = editorUi.createDiv('background');
-               this.bg.className = 'modal-backdrop fade in';
-
-               if (mxClient.IS_QUIRKS) {
-                       new mxDivResizer(this.bg);
-               }
-       }
-
-       if (modal) {
-               document.body.appendChild(this.bg);
-       }
-
-       document.body.appendChild(div);
-
-       this.onDialogClose = onClose;
-       this.container = div;
-};
-
-/**
- * Removes the dialog from the DOM.
- */
-Dialog.prototype.close = function() {
-       if (this.onDialogClose != null) {
-               this.onDialogClose();
-               this.onDialogClose = null;
-       }
-
-       this.container.parentNode.removeChild(this.container);
-       this.bg.parentNode.removeChild(this.bg);
-};
-
-/**
- * Constructs a new open dialog.
- */
-function ImportDialog(editorUi) {
-
-       var content = editorUi.createDiv('modal-content');
-       var header = editorUi.createDiv('modal-header');
-       var body = editorUi.createDiv('modal-body');
-       var footer = editorUi.createDiv('modal-footer');
-
-       //--- START HEADER
-       var title = editorUi.createHeader('h4');
-       mxUtils.write(title, mxResources.get('import') + ' XML');
-
-       var x = mxUtils.button('', function() {
-               editorUi.hideDialog();
-       });
-       x.className = 'close';
-
-       header.appendChild(x);
-       header.appendChild(title);
-       //--- END HEADER
-
-       //--- START BODY
-       var row = editorUi.createDiv('row');
-       var col1 = editorUi.createDiv('col-md-12');
-
-       var textarea = document.createElement('textarea');
-       textarea.style.width = '100%';
-       textarea.style.height = '374px';
-
-       var input = document.createElement('input');
-       input.type = 'file';
-       input.setAttribute('accept', 'text/xml');
-
-       input.addEventListener('change', function readSingleFile(evt) {
-               //Retrieve the first (and only!) File from the FileList object
-               var f = evt.target.files[0];
-               console.log(f);
-               if (f) {
-                       if (f.type === 'text/xml') {
-                               var r = new FileReader();
-                               r.onload = function(e) {
-                                       var contents = e.target.result;
-                                       mxUtils.write(textarea, contents);
-                               };
-                               r.readAsText(f);
-                       } else {
-                               alert('Failed to load format file');
-                       }
-               } else {
-                       alert('Failed to load file');
-               }
-       }, false);
-
-       col1.appendChild(input);
-       col1.appendChild(textarea);
-
-       row.appendChild(col1);
-       body.appendChild(row);
-       //--- END BODY
-
-       //--- START FOOTER
-       var save = mxUtils.button(mxResources.get('import'), mxUtils.bind(this,
-               function(data) {
-                       var doc = mxUtils.parseXml(textarea.value);
-                       editorUi.editor.setGraphXml(doc.documentElement);
-                       editorUi.hideDialog();
-               }));
-       save.className = 'btn blue';
-
-       var close = mxUtils.button(mxResources.get('cancel'), function() {
-               editorUi.hideDialog();
-       });
-       close.className = 'btn default';
-
-       footer.appendChild(save);
-       footer.appendChild(close);
-       //--- END FOOTER
-
-       //--- START CONTENT
-       content.appendChild(header);
-       content.appendChild(body);
-       content.appendChild(footer);
-       //--- END CONTENT
-
-       this.container = content;
-
-};
-
-/**
- * Constructs a new about dialog.
- */
-function AboutDialog(editorUi) {
-       var content = editorUi.createDiv('modal-content');
-       var header = editorUi.createDiv('modal-header');
-       var body = editorUi.createDiv('modal-body');
-       var footer = editorUi.createDiv('modal-footer');
-
-       //--- START HEADER
-       var title = editorUi.createHeader('h4');
-       mxUtils.write(title, mxResources.get('about') + ' Cally Square');
-
-       var x = mxUtils.button('', function() {
-               editorUi.hideDialog();
-       });
-       x.className = 'close';
-
-       header.appendChild(x);
-       header.appendChild(title);
-       //--- END HEADER
-
-       //--- START BODY
-       var img = document.createElement('img');
-       img.style.border = '0px';
-       img.setAttribute('width', '176');
-       img.setAttribute('width', '151');
-       img.setAttribute('src', IMAGE_PATH + '/logo.png');
-       body.appendChild(img);
-       mxUtils.br(body);
-       mxUtils.write(body, 'Powered by Xenialab ' + mxClient.VERSION);
-       mxUtils.br(body);
-       var link = document.createElement('a');
-       link.setAttribute('href', 'http://www.callysquare.com/');
-       link.setAttribute('target', '_blank');
-       mxUtils.write(link, 'www.callysquare.com');
-       body.appendChild(link);
-       mxUtils.br(body);
-       mxUtils.br(body);
-       //--- END BODY
-
-       var close = mxUtils.button(mxResources.get('close'), function() {
-               editorUi.hideDialog();
-       });
-       close.className = 'btn default';
-
-       footer.appendChild(close);
-       //--- END FOOTER
-
-       //--- START CONTENT
-       content.appendChild(header);
-       content.appendChild(body);
-       content.appendChild(footer);
-       //--- END CONTENT
-
-       this.container = content;
-};
-
-/**
- * Constructs a new save dialog.
- */
-function SaveDialog(editorUi) {
-
-       var content = editorUi.createDiv('modal-content');
-       var header = editorUi.createDiv('modal-header');
-       var body = editorUi.createDiv('modal-body');
-       var footer = editorUi.createDiv('modal-footer');
-
-       //--- START HEADER
-       var title = editorUi.createHeader('h4');
-       mxUtils.write(title, mxResources.get('saveAs'));
-
-       var x = mxUtils.button('', function() {
-               editorUi.hideDialog();
-       });
-       x.className = 'close';
-
-       header.appendChild(x);
-       header.appendChild(title);
-       //--- END HEADER
-
-       //--- START BODY
-       var name = 'name';
-       var id = '_' + name;
-       var value = editorUi.editor.getOrCreateFilename();
-
-       var row = editorUi.createDiv('row');
-       var col1 = editorUi.createDiv('col-md-4');
-       var col2 = editorUi.createDiv('col-md-8');
-
-       var label = document.createElement('label');
-       label.className = 'control-label pull-right';
-       mxUtils.write(label, mxResources.get(name));
-       col1.appendChild(label);
-
-       var select = document.createElement('input');
-       select.setAttribute('value', value + '_copy');
-       select.setAttribute('id', id)
-       select.className = 'form-control';
-       col2.appendChild(select);
-
-       row.appendChild(col1);
-       row.appendChild(col2);
-       body.appendChild(row);
-       //--- END BODY
-
-       //--- START FOOTER
-       var save = mxUtils.button(mxResources.get('save'), function() {
-               editorUi.saveAs(select.value);
-               editorUi.hideDialog();
-       });
-       save.className = 'btn blue';
-
-       var close = mxUtils.button(mxResources.get('cancel'), function() {
-               editorUi.hideDialog();
-       });
-       close.className = 'btn default';
-
-       footer.appendChild(save);
-       footer.appendChild(close);
-       //--- END FOOTER
-
-       //--- START CONTENT
-       content.appendChild(header);
-       content.appendChild(body);
-       content.appendChild(footer);
-       //--- END CONTENT
-
-       this.container = content;
-       //nameInput.setAttribute('value', editorUi.editor.getOrCreateFilename());
-};
-
-/**
- * Constructs a new save dialog.
- */
-function NewDialog(editorUi) {
-
-       var content = editorUi.createDiv('modal-content');
-       var header = editorUi.createDiv('modal-header');
-       var body = editorUi.createDiv('modal-body');
-       var footer = editorUi.createDiv('modal-footer');
-
-       //--- START HEADER
-       var title = editorUi.createHeader('h4');
-       mxUtils.write(title, mxResources.get('new'));
-
-       var x = mxUtils.button('', function() {
-               editorUi.hideDialog();
-       });
-       x.className = 'close';
-
-       header.appendChild(x);
-       header.appendChild(title);
-       //--- END HEADER
-
-       //--- START BODY
-       var name = 'name';
-       var id = '_' + name;
-       var value = editorUi.editor.getOrCreateFilename();
-
-       var row = editorUi.createDiv('row');
-       var col1 = editorUi.createDiv('col-md-4');
-       var col2 = editorUi.createDiv('col-md-8');
-
-       var label = document.createElement('label');
-       label.className = 'control-label pull-right';
-       mxUtils.write(label, mxResources.get(name));
-       col1.appendChild(label);
-
-       var select = document.createElement('input');
-       select.setAttribute('value', value + '_new');
-       select.setAttribute('id', id)
-       select.className = 'form-control';
-       col2.appendChild(select);
-
-       row.appendChild(col1);
-       row.appendChild(col2);
-       body.appendChild(row);
-       //--- END BODY
-
-       //--- START FOOTER
-       var save = mxUtils.button(mxResources.get('new'), function() {
-               editorUi.new(select.value);
-               editorUi.hideDialog();
-       });
-       save.className = 'btn blue';
-
-       var close = mxUtils.button(mxResources.get('cancel'), function() {
-               editorUi.hideDialog();
-       });
-       close.className = 'btn default';
-
-       footer.appendChild(save);
-       footer.appendChild(close);
-       //--- END FOOTER
-
-       //--- START CONTENT
-       content.appendChild(header);
-       content.appendChild(body);
-       content.appendChild(footer);
-       //--- END CONTENT
-
-       this.container = content;
-       //nameInput.setAttribute('value', editorUi.editor.getOrCreateFilename());
-};
-
-/**
- * Constructs a new save dialog.
- */
-function VariableDialog(editorUi) {
-
-       var content = editorUi.createDiv('modal-content');
-       var header = editorUi.createDiv('modal-header');
-       var body = editorUi.createDiv('modal-body');
-       var footer = editorUi.createDiv('modal-footer');
-
-       //--- START HEADER
-       var title = editorUi.createHeader('h4');
-       mxUtils.write(title, mxResources.get('variable'));
-
-       var x = mxUtils.button('', function() {
-               editorUi.hideDialog();
-       });
-       x.className = 'close';
-
-       header.appendChild(x);
-       header.appendChild(title);
-       //--- END HEADER
-
-       //--- START BODY
-       var name = 'name';
-       var id = '_' + name;
-       var value = editorUi.editor.getOrCreateFilename();
-
-       var row = editorUi.createDiv('row');
-       var col1 = editorUi.createDiv('col-md-4');
-       var col2 = editorUi.createDiv('col-md-8');
-
-       var label = document.createElement('label');
-       label.className = 'control-label pull-right';
-       mxUtils.write(label, mxResources.get(name));
-       col1.appendChild(label);
-
-       var select = document.createElement('input');
-       select.setAttribute('value', 'variable name');
-       select.setAttribute('id', id)
-       select.className = 'form-control';
-       col2.appendChild(select);
-
-       row.appendChild(col1);
-       row.appendChild(col2);
-       body.appendChild(row);
-       //--- END BODY
-
-       //--- START FOOTER
-       var save = mxUtils.button(mxResources.get('new'), function() {
-               editorUi.variable(select.value);
-               editorUi.hideDialog();
-       });
-       save.className = 'btn blue';
-
-       var close = mxUtils.button(mxResources.get('cancel'), function() {
-               editorUi.hideDialog();
-       });
-       close.className = 'btn default';
-
-       footer.appendChild(save);
-       footer.appendChild(close);
-       //--- END FOOTER
-
-       //--- START CONTENT
-       content.appendChild(header);
-       content.appendChild(body);
-       content.appendChild(footer);
-       //--- END CONTENT
-
-       this.container = content;
-       //nameInput.setAttribute('value', editorUi.editor.getOrCreateFilename());
-};
-
-/**
- * Constructs a new save dialog.
- */
-function OpenDialog(editorUi) {
-
-       var content = editorUi.createDiv('modal-content');
-       var header = editorUi.createDiv('modal-header');
-       var body = editorUi.createDiv('modal-body');
-       var footer = editorUi.createDiv('modal-footer');
-
-       //--- START HEADER
-       var title = editorUi.createHeader('h4');
-       mxUtils.write(title, mxResources.get('open'));
-
-       var x = mxUtils.button('', function() {
-               editorUi.hideDialog();
-       });
-       x.className = 'close';
-
-       header.appendChild(x);
-       header.appendChild(title);
-       //--- END HEADER
-
-       //--- START BODY
-       var row = editorUi.createDiv('row');
-       var col1 = editorUi.createDiv('col-md-4');
-       var col2 = editorUi.createDiv('col-md-8');
-
-       var label = document.createElement('label');
-       label.className = 'control-label pull-right';
-       mxUtils.write(label, mxResources.get('name'));
-       col1.appendChild(label);
-
-       var req = new XMLHttpRequest();
-       req.open('GET', '/api/square/projects', false); // `false` makes the request synchronous
-       req.setRequestHeader('Authorization', 'Bearer ' + editorUi.editor.data.token);
-       req.send(null);
-       var res = [];
-       if (req.status === 200) {
-               res = JSON.parse(req.response);
-       }
-
-       var select = document.createElement('select');
-
-       for (var j = 0; j < res.length; j++) {
-               var option = document.createElement('option');
-               option.text = res[j].name;
-               option.value = res[j].id;
-               select.appendChild(option);
-       }
-       select.className = 'form-control';
-       col2.appendChild(select);
-
-       row.appendChild(col1);
-       row.appendChild(col2);
-       body.appendChild(row);
-       //--- END BODY
-
-       //--- START FOOTER
-       var save = mxUtils.button(mxResources.get('open'), function() {
-               console.log(select);
-               console.log(select.value);
-               window.open('square/project/' + select.value, '_blank');
-               editorUi.hideDialog();
-       });
-       save.className = 'btn blue';
-
-       var close = mxUtils.button(mxResources.get('cancel'), function() {
-               editorUi.hideDialog();
-       });
-       close.className = 'btn default';
-
-       footer.appendChild(save);
-       footer.appendChild(close);
-       //--- END FOOTER
-
-       //--- START CONTENT
-       content.appendChild(header);
-       content.appendChild(body);
-       content.appendChild(footer);
-       //--- END CONTENT
-
-       this.container = content;
-       //nameInput.setAttribute('value', editorUi.editor.getOrCreateFilename());
-};
-
-
-/**
- * Constructs a new edit file dialog.
- */
-function EditFileDialog(editorUi) {
-
-       var content = editorUi.createDiv('modal-content');
-       var header = editorUi.createDiv('modal-header');
-       var body = editorUi.createDiv('modal-body');
-       var footer = editorUi.createDiv('modal-footer');
-
-       //--- START HEADER
-       var title = editorUi.createHeader('h4');
-       mxUtils.write(title, mxResources.get('edit'));
-
-       var x = mxUtils.button('', function() {
-               editorUi.hideDialog();
-       });
-       x.className = 'close';
-
-       header.appendChild(x);
-       header.appendChild(title);
-       //--- END HEADER
-
-       //--- START BODY
-       var row = editorUi.createDiv('row');
-       var col1 = editorUi.createDiv('col-md-12');
-
-       var textarea = document.createElement('textarea');
-       textarea.style.width = '100%';
-       textarea.style.height = '374px';
-       textarea.value = mxUtils.getPrettyXml(editorUi.editor.getGraphXml());
-
-       // Enables dropping files
-       if (fileSupport) {
-               function handleDrop(evt) {
-                       evt.stopPropagation();
-                       evt.preventDefault();
-
-                       if (evt.dataTransfer.files.length > 0) {
-                               var file = evt.dataTransfer.files[0];
-
-                               var reader = new FileReader();
-                               reader.onload = function(e) {
-                                       textarea.value = e.target.result;
-                               };
-                               reader.readAsText(file);
-                       }
-               };
-
-               function handleDragOver(evt) {
-                       evt.stopPropagation();
-                       evt.preventDefault();
-               };
-
-               // Setup the dnd listeners.
-               textarea.addEventListener('dragover', handleDragOver, false);
-               textarea.addEventListener('drop', handleDrop, false);
-       }
-       col1.appendChild(textarea);
-
-       row.appendChild(col1);
-       body.appendChild(row);
-       //--- END BODY
-
-       //--- START FOOTER
-       var save = mxUtils.button(mxResources.get('save'), function() {
-               var doc = mxUtils.parseXml(textarea.value);
-               editorUi.editor.setGraphXml(doc.documentElement);
-               editorUi.hideDialog();
-       });
-       save.className = 'btn blue';
-
-       var close = mxUtils.button(mxResources.get('cancel'), function() {
-               editorUi.hideDialog();
-       });
-       close.className = 'btn default';
-
-       footer.appendChild(save);
-       footer.appendChild(close);
-       //--- END FOOTER
-
-       //--- START CONTENT
-       content.appendChild(header);
-       content.appendChild(body);
-       content.appendChild(footer);
-       //--- END CONTENT
-
-       this.container = content;
-};
-
-/**
- * Constructs a new export dialog.
- */
-function ExportDialog(editorUi) {
-       var content = editorUi.createDiv('modal-content');
-       var header = editorUi.createDiv('modal-header');
-       var body = editorUi.createDiv('modal-body form');
-       var footer = editorUi.createDiv('modal-footer');
-
-       //--- START HEADER
-       var title = editorUi.createHeader('h4');
-       mxUtils.write(title, mxResources.get('export') + ' XML');
-
-       var x = mxUtils.button('', function() {
-               editorUi.hideDialog();
-       });
-       x.className = 'close';
-
-       header.appendChild(x);
-       header.appendChild(title);
-       //--- END HEADER
-
-       //--- START BODY
-       var form = editorUi.createDiv('form-horizontal form-row-seperated');
-       var group = editorUi.createDiv('form-group last');
-
-       var label = document.createElement('label');
-       label.className = 'col-sm-4 control-label';
-       mxUtils.write(label, mxResources.get('filename'));
-
-       var input = document.createElement('input');
-       input.setAttribute('value', editorUi.editor.getOrCreateFilename());
-       input.className = 'form-control';
-
-       var div = editorUi.createDiv('col-sm-8');
-       div.appendChild(input);
-
-       group.appendChild(label);
-       group.appendChild(div);
-       form.appendChild(group);
-
-       body.appendChild(form);
-       //--- END BODY
-
-       //--- START FOOTER
-       var save = mxUtils.button(mxResources.get('export'), mxUtils.bind(this,
-               function(data) {
-                       editorUi.save(false);
-
-                       var xml = encodeURIComponent(mxUtils.getXml(editorUi.editor.getGraphXml()));
-                       new mxXmlRequest(SAVE_URL + editorUi.editor.data.id + '/download',
-                               'filename=' + input.value, 'GET').simulate(document, "_blank");
-                       editorUi.hideDialog();
-               }));
-       save.className = 'btn blue';
-
-       var close = mxUtils.button(mxResources.get('cancel'), function() {
-               editorUi.hideDialog();
-       });
-       close.className = 'btn default';
-
-       footer.appendChild(save);
-       footer.appendChild(close);
-       //--- END FOOTER
-
-       //--- START CONTENT
-       content.appendChild(header);
-       content.appendChild(body);
-       content.appendChild(footer);
-       //--- END CONTENT
-
-       this.container = content;
-};
-
-/**
- * Giuseppe Careri
- * Constructs a new general dialog.
- */
-function GeneralDialog(editorUi, cell) {
-       var graph = editorUi.editor.graph;
-
-       var content = editorUi.createDiv('modal-content');
-       var header = editorUi.createDiv('modal-header');
-       var body = editorUi.createDiv('modal-body form modal-body-scroll');
-       var footer = editorUi.createDiv('modal-footer');
-
-       //--- START HEADER
-       var title = editorUi.createHeader('h4');
-       mxUtils.write(title, mxResources.get('edit') + ' ' + mxResources.get(cell.value
-               .nodeName));
-
-       var x = mxUtils.button('', function() {
-               editorUi.hideDialog();
-       });
-       x.className = 'close';
-
-       header.appendChild(x);
-       header.appendChild(title);
-       //--- END HEADER
-
-       //--- START BODY
-       var length = cell.value.attributes.length;
-       var form = editorUi.createDiv('form-horizontal form-row-seperated');
-
-       for (var i = 0; i < length; i++) {
-               var name = cell.value.attributes[i].name;
-               var id = '_' + name;
-               var value = cell.value.attributes[i].value;
-
-               var group = editorUi.createDiv((i == length - 1) ? 'form-group last' :
-                       'form-group');
-
-               var label = document.createElement('label');
-               label.className = 'col-sm-4 control-label';
-               mxUtils.write(label, mxResources.get(name));
-               group.appendChild(label);
-
-               var input;
-
-               switch (name) {
-                       case 'sip_id':
-                               input = createDropdownFromApi('/api/agents', value, 'name', 'id', editorUi, true);
-                               break;
-                       case 'queue_id':
-                               input = createDropdownFromApi('/api/voice/queues', value, 'name', 'name', editorUi, true);
-                               break;
-                       case 'trunk_id':
-                               input = createDropdownFromApi('/api/trunks', value, 'name', 'id', editorUi, true);
-                               break;
-                       case 'variable_id':
-                               input = createDropdownFromApi('/api/square/variables', value, 'name', 'id', editorUi, true); //mettere true dopo la pagination
-                               break;
-                       case 'model':
-                               input = createDropdownFromArray(ISPEECHASRMODEL, value);
-                               break;
-                       case 'ispeech_asr_language':
-                               input = createDropdownFromArray(ISPEECHASRLANG, value);
-                               break;
-                       case 'ispeech_tts_language':
-                               input = createDropdownFromArray(ISPEECHLANG, value);
-                               break;
-                       case 'google_tts_language':
-                               input = createDropdownFromArray(GOOGLETTSLANG, value);
-                               break;
-                       case 'interval_id':
-                               input = createGroupedDropdownFromApi('/api/intervals/all', value, 'name', 'id', editorUi, false, 'IntervalId');
-                               break;
-                       case 'project_id':
-                               input = createDropdownFromApi('/api/square/projects', value, 'name', 'id', editorUi, true);
-                               break;
-                       case 'odbc_id':
-                               input = createDropdownFromApi('/api/square/odbc', value, 'name', 'id', editorUi, true);
-                               break;
-                       case 'file_id':
-                               input = createDropdownFromApi('/api/uploads', value, 'display_name', 'id', editorUi, false);
-                               break;
-                       case 'timeout':
-                       case 'digit':
-                       case 'mindigit':
-                       case 'maxdigit':
-                       case 'response':
-                       case 'retry':
-                               input = document.createElement('input');
-                               input.setAttribute('type', 'number');
-                               input.setAttribute('min', 0);
-                               input.setAttribute('max', 1000);
-                               input.setAttribute('value', value);
-                               input.className = 'form-control';
-                               break;
-                       case 'text':
-                       case 'key':
-                       case 'query':
-                       case 'condition':
-                       case 'command':
-                               input = document.createElement('textarea');
-                               input.innerHTML = value;
-                               input.className = 'form-control';
-                               break;
-                       default:
-                               input = document.createElement('input');
-                               input.setAttribute('value', value);
-                               input.className = 'form-control';
-                               break;
-               }
-
-               input.setAttribute('id', id)
-
-               var div = editorUi.createDiv('col-sm-8');
-               div.appendChild(input);
-
-               // Help
-               if (mxResources.get('help_' + name)) {
-                       var help = editorUi.createDiv('p');
-                       help.className = 'help-block';
-                       mxUtils.write(help, mxResources.get('help_' + name));
-                       div.appendChild(help);
-               }
-
-               group.appendChild(div);
-               form.appendChild(group);
-       }
-       body.appendChild(form);
-       //--- END BODY
-
-       //--- START FOOTER
-       var save = mxUtils.button(mxResources.get('save'), mxUtils.bind(this,
-               function(data) {
-                       for (var i = 0; i < cell.value.attributes.length; i++) {
-                               var id = '_' + cell.value.attributes[i].name;
-                               var name = cell.value.attributes[i].name;
-                               console.log(name, document.getElementById(id).value);
-                               cell.setAttribute(name, document.getElementById(id).value);
-                       };
-                       graph.refresh(cell);
-                       editorUi.hideDialog();
-               }));
-       save.className = 'btn blue';
-
-       var close = mxUtils.button(mxResources.get('cancel'), function() {
-               editorUi.hideDialog();
-       });
-       close.className = 'btn default';
-
-       footer.appendChild(save);
-       footer.appendChild(close);
-       //--- END FOOTER
-
-       //--- START CONTENT
-       content.appendChild(header);
-       content.appendChild(body);
-       content.appendChild(footer);
-       //--- END CONTENT
-
-       this.container = content;
-};
+var _0x2679=["\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","\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","","\x50\x4F\x53\x54","\x2F\x61\x70\x69\x2F\x72\x65\x73\x74\x2F\x6C\x69\x73\x74\x2F\x6C\x69\x73\x74","\x73\x74\x72\x69\x6E\x67\x69\x66\x79","\x52\x4D\x49","\x69\x64","\x6E\x61\x6D\x65","\x6C\x6F\x67","\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","\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","\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","\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\x73\x71\x75\x61\x72\x65\x2F\x70\x72\x6F\x6A\x65\x63\x74\x73","\x6C\x65\x6E\x67\x74\x68","\x73\x71\x75\x61\x72\x65\x2F\x70\x72\x6F\x6A\x65\x63\x74\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","\x61\x74\x74\x72\x69\x62\x75\x74\x65\x73","\x66\x6F\x72\x6D\x2D\x67\x72\x6F\x75\x70","\x2F\x61\x70\x69\x2F\x61\x67\x65\x6E\x74\x73","\x73\x69\x70\x5F\x69\x64","\x2F\x61\x70\x69\x2F\x76\x6F\x69\x63\x65\x2F\x71\x75\x65\x75\x65\x73","\x71\x75\x65\x75\x65\x5F\x69\x64","\x2F\x61\x70\x69\x2F\x74\x72\x75\x6E\x6B\x73","\x74\x72\x75\x6E\x6B\x5F\x6E\x61\x6D\x65","\x2F\x61\x70\x69\x2F\x76\x61\x72\x69\x61\x62\x6C\x65\x73","\x76\x61\x72\x69\x61\x62\x6C\x65\x5F\x69\x64","\x73\x65\x6E\x64\x4D\x61\x69\x6C","\x2F\x61\x70\x69\x2F\x6D\x61\x69\x6C\x2F\x73\x65\x72\x76\x65\x72\x73\x2F\x6F\x75\x74","\x75\x73\x65\x72\x6E\x61\x6D\x65","\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","\x2F\x61\x70\x69\x2F\x76\x6F\x69\x63\x65\x2F\x63\x6F\x6E\x74\x65\x78\x74\x73","\x63\x6F\x6E\x74\x65\x78\x74","\x2F\x61\x70\x69\x2F\x76\x6F\x69\x63\x65\x2F\x76\x6F\x69\x63\x65\x6D\x61\x69\x6C\x73","\x6D\x61\x69\x6C\x62\x6F\x78","\x25\x6D\x61\x69\x6C\x62\x6F\x78\x25\x40\x25\x63\x6F\x6E\x74\x65\x78\x74\x25","\x6D\x6F\x64\x65\x6C","\x69\x73\x70\x65\x65\x63\x68\x5F\x61\x73\x72\x5F\x6C\x61\x6E\x67\x75\x61\x67\x65","\x62\x65\x65\x70","\x68\x69\x64\x64\x65\x6E\x64\x69\x67\x69\x74\x73\x70\x6F\x73","\x69\x73\x70\x65\x65\x63\x68\x5F\x74\x74\x73\x5F\x6C\x61\x6E\x67\x75\x61\x67\x65","\x67\x6F\x6F\x67\x6C\x65\x5F\x74\x74\x73\x5F\x6C\x61\x6E\x67\x75\x61\x67\x65","\x6C\x69\x73\x74\x5F\x69\x64","\x2F\x61\x70\x69\x2F\x69\x6E\x74\x65\x72\x76\x61\x6C\x73","\x53\x75\x62\x49\x6E\x74\x65\x72\x76\x61\x6C\x73","\x69\x6E\x74\x65\x72\x76\x61\x6C\x5F\x69\x64","\x70\x72\x6F\x6A\x65\x63\x74\x5F\x69\x64","\x2F\x61\x70\x69\x2F\x73\x71\x75\x61\x72\x65\x2F\x6F\x64\x62\x63","\x6F\x64\x62\x63\x5F\x69\x64","\x2F\x61\x70\x69\x2F\x73\x6F\x75\x6E\x64\x73","\x64\x69\x73\x70\x6C\x61\x79\x5F\x6E\x61\x6D\x65","\x66\x69\x6C\x65\x5F\x69\x64","\x74\x69\x6D\x65\x6F\x75\x74","\x64\x69\x67\x69\x74","\x6D\x69\x6E\x64\x69\x67\x69\x74","\x6D\x61\x78\x64\x69\x67\x69\x74","\x72\x65\x74\x72\x79","\x6E\x75\x6D\x62\x65\x72","\x6D\x69\x6E","\x73\x70\x65\x65\x64","\x6B\x65\x79","\x71\x75\x65\x72\x79","\x63\x6F\x6E\x64\x69\x74\x69\x6F\x6E","\x63\x6F\x6D\x6D\x61\x6E\x64","\x69\x6E\x6E\x65\x72\x48\x54\x4D\x4C","\x6D\x61\x78\x6C\x65\x6E\x67\x74\x68","\x31\x36\x30","\x73\x6D\x73\x5F\x74\x65\x78\x74","\x68\x65\x6C\x70\x5F","\x70","\x68\x65\x6C\x70\x2D\x62\x6C\x6F\x63\x6B","\x67\x65\x74\x45\x6C\x65\x6D\x65\x6E\x74\x42\x79\x49\x64","\x72\x65\x66\x72\x65\x73\x68"];_0x2679[0];function createCheckbox(_0xf187x2){var _0xf187x3=document[_0x2679[2]](_0x2679[1]);_0xf187x3[_0x2679[5]](_0x2679[3],_0x2679[4]);if(_0xf187x2){_0xf187x3[_0x2679[5]](_0x2679[6],true)};return _0xf187x3}function createDropdownFromApi(_0xf187x5,_0xf187x2,_0xf187x6,_0xf187x7,_0xf187x8,_0xf187x9,_0xf187xa){var _0xf187xb= new XMLHttpRequest();_0xf187xb[_0x2679[8]](_0x2679[7],_0xf187x5,false);_0xf187xb[_0x2679[14]](_0x2679[9],_0x2679[10]+ _0xf187x8[_0x2679[13]][_0x2679[12]][_0x2679[11]]);_0xf187xb[_0x2679[15]](null);var _0xf187xc=[];if(_0xf187xb[_0x2679[16]]=== 200){_0xf187xc= JSON[_0x2679[18]](_0xf187xb[_0x2679[17]])};var _0xf187x3=document[_0x2679[2]](_0x2679[19]);var _0xf187xd=document[_0x2679[2]](_0x2679[20]);_0xf187xd[_0x2679[21]]= _0x2679[22];_0xf187xd[_0x2679[23]]= _0x2679[24];_0xf187x3[_0x2679[25]](_0xf187xd);_0xf187xc[_0x2679[30]][_0x2679[28]](function(_0xf187xe){_0xf187xd= document[_0x2679[2]](_0x2679[20]);_0xf187xd[_0x2679[21]]= _0xf187xe[_0xf187x6];if(_0xf187x9&& _0xf187xa){_0xf187x9[_0x2679[28]](function(_0xf187xf){_0xf187xa= _0xf187xa[_0x2679[27]](_0x2679[26]+ _0xf187xf+ _0x2679[26],_0xf187xe[_0xf187xf])});_0xf187xd[_0x2679[23]]= _0xf187xa;_0xf187xd[_0x2679[29]]= (_0xf187xa== _0xf187x2)}else {_0xf187xd[_0x2679[23]]= _0xf187xe[_0xf187x7];_0xf187xd[_0x2679[29]]= (_0xf187xe[_0xf187x7]== _0xf187x2)};_0xf187x3[_0x2679[25]](_0xf187xd)});_0xf187x3[_0x2679[31]]= _0x2679[32];return _0xf187x3}function createGroupedDropdownFromApi(_0xf187x5,_0xf187x2,_0xf187x6,_0xf187x7,_0xf187x8,_0xf187x11){var _0xf187xb= new XMLHttpRequest();_0xf187xb[_0x2679[8]](_0x2679[7],_0xf187x5,false);_0xf187xb[_0x2679[14]](_0x2679[9],_0x2679[10]+ _0xf187x8[_0x2679[13]][_0x2679[12]][_0x2679[11]]);_0xf187xb[_0x2679[15]](null);var _0xf187xc=[];if(_0xf187xb[_0x2679[16]]=== 200){_0xf187xc= JSON[_0x2679[18]](_0xf187xb[_0x2679[17]])};var _0xf187x3=document[_0x2679[2]](_0x2679[19]);var _0xf187xd=document[_0x2679[2]](_0x2679[20]);_0xf187xd[_0x2679[21]]= _0x2679[22];_0xf187xd[_0x2679[23]]= _0x2679[33];_0xf187x3[_0x2679[25]](_0xf187xd);_0xf187xc[_0x2679[30]][_0x2679[28]](function(_0xf187xe){_0xf187xd= document[_0x2679[2]](_0x2679[20]);_0xf187xd[_0x2679[31]]= _0x2679[34];_0xf187xd[_0x2679[21]]= _0xf187xe[_0xf187x6][_0x2679[35]]();_0xf187xd[_0x2679[23]]= _0xf187xe[_0xf187x7];_0xf187xd[_0x2679[29]]= (_0xf187xe[_0xf187x7]== _0xf187x2);_0xf187x3[_0x2679[25]](_0xf187xd);_0xf187xe[_0xf187x11][_0x2679[28]](function(_0xf187xe){_0xf187xd= document[_0x2679[2]](_0x2679[20]);_0xf187xd[_0x2679[31]]= _0x2679[36];_0xf187xd[_0x2679[21]]= _0x2679[37]+ _[_0x2679[38]](_0xf187xe[_0xf187x6]);_0xf187xd[_0x2679[23]]= _0xf187xe[_0xf187x7];_0xf187xd[_0x2679[29]]= (_0xf187xe[_0xf187x7]== _0xf187x2);_0xf187x3[_0x2679[25]](_0xf187xd)})});_0xf187x3[_0x2679[31]]= _0x2679[32];return _0xf187x3}function createDropdownFromArray(_0xf187x13,_0xf187x2){var _0xf187x3=document[_0x2679[2]](_0x2679[19]);for(var _0xf187x14 in _0xf187x13){var _0xf187xd=document[_0x2679[2]](_0x2679[20]);_0xf187xd[_0x2679[21]]= _0xf187x13[_0xf187x14];_0xf187xd[_0x2679[23]]= _0xf187x14;if(_0xf187x2> 0|| _0xf187x2!= _0x2679[39]){_0xf187xd[_0x2679[29]]= (_0xf187x2=== _0xf187x14)?true:false};_0xf187x3[_0x2679[25]](_0xf187xd)};_0xf187x3[_0x2679[31]]= _0x2679[32];return _0xf187x3}function createDropdownFromTigerDialList(_0xf187x2){var _0xf187x3=document[_0x2679[2]](_0x2679[19]);var _0xf187x13=[];var _0xf187x16= new XMLHttpRequest();try{_0xf187x16[_0x2679[8]](_0x2679[40],_0x2679[41],false);_0xf187x16[_0x2679[15]](JSON[_0x2679[42]]({page:1,size:600000}));if(_0xf187x16[_0x2679[16]]=== 200){var _0xf187xc=JSON[_0x2679[18]](_0xf187x16[_0x2679[17]]);if(_0xf187xc[_0x2679[16]]> 0){var _0xf187x17=_0xf187xc[_0x2679[17]][_0x2679[43]][_0x2679[30]];for(var _0xf187x18 in _0xf187x17){_0xf187x13[_0xf187x17[_0xf187x18][_0x2679[44]]]= _0xf187x17[_0xf187x18][_0x2679[45]]}}}}catch(e){console[_0x2679[46]](e)};for(var _0xf187x14 in _0xf187x13){var _0xf187xd=document[_0x2679[2]](_0x2679[20]);_0xf187xd[_0x2679[21]]= _0xf187x13[_0xf187x14];_0xf187xd[_0x2679[23]]= _0xf187x14;if(_0xf187x2> 0|| _0xf187x2!= _0x2679[39]){_0xf187xd[_0x2679[29]]= (_0xf187x2=== _0xf187x14)?true:false};_0xf187x3[_0x2679[25]](_0xf187xd)};_0xf187x3[_0x2679[31]]= _0x2679[32];return _0xf187x3}function Dialog(_0xf187x8,_0xf187x1a,_0xf187x1b,_0xf187x1c,_0xf187x1d,_0xf187x1e,_0xf187x1f){var _0xf187x20=0;if(mxClient[_0x2679[47]]&& document[_0x2679[48]]!= 9){_0xf187x20= 60};_0xf187x1b+= _0xf187x20;_0xf187x1c+= _0xf187x20;var _0xf187x21=Math[_0x2679[52]](0,Math[_0x2679[51]]((document[_0x2679[50]][_0x2679[49]]- _0xf187x1b)/ 2));var _0xf187x22=Math[_0x2679[52]](0,Math[_0x2679[51]]((Math[_0x2679[52]](document[_0x2679[50]][_0x2679[53]],document[_0x2679[54]][_0x2679[53]])- _0xf187x1c)/ 3));var _0xf187x23=_0xf187x8[_0x2679[56]](_0x2679[55]);_0xf187x23[_0x2679[31]]= _0x2679[57];_0xf187x23[_0x2679[59]][_0x2679[58]]= _0x2679[60];_0xf187x23[_0x2679[59]][_0x2679[61]]= _0x2679[62];var _0xf187x24=_0xf187x8[_0x2679[56]](_0x2679[63]);_0xf187x24[_0x2679[31]]= _0x2679[64];_0xf187x24[_0x2679[25]](_0xf187x1a);_0xf187x23[_0x2679[25]](_0xf187x24);if(this[_0x2679[65]]== null){this[_0x2679[65]]= _0xf187x8[_0x2679[56]](_0x2679[66]);this[_0x2679[65]][_0x2679[31]]= _0x2679[67];if(mxClient[_0x2679[68]]){ new mxDivResizer(this[_0x2679[65]])}};if(_0xf187x1d){document[_0x2679[50]][_0x2679[25]](this[_0x2679[65]])};document[_0x2679[50]][_0x2679[25]](_0xf187x23);this[_0x2679[69]]= _0xf187x1f;this[_0x2679[70]]= _0xf187x23}Dialog[_0x2679[72]][_0x2679[71]]= function(){if(this[_0x2679[69]]!= null){this[_0x2679[69]]();this[_0x2679[69]]= null};this[_0x2679[70]][_0x2679[74]][_0x2679[73]](this[_0x2679[70]]);this[_0x2679[65]][_0x2679[74]][_0x2679[73]](this[_0x2679[65]])};function ImportDialog(_0xf187x8){var _0xf187x26=_0xf187x8[_0x2679[56]](_0x2679[75]);var _0xf187x27=_0xf187x8[_0x2679[56]](_0x2679[76]);var _0xf187x28=_0xf187x8[_0x2679[56]](_0x2679[77]);var _0xf187x29=_0xf187x8[_0x2679[56]](_0x2679[78]);var _0xf187x2a=_0xf187x8[_0x2679[80]](_0x2679[79]);mxUtils[_0x2679[84]](_0xf187x2a,mxResources[_0x2679[82]](_0x2679[81])+ _0x2679[83]);var _0xf187x2b=mxUtils[_0x2679[86]](_0x2679[39],function(){_0xf187x8[_0x2679[85]]()});_0xf187x2b[_0x2679[31]]= _0x2679[71];_0xf187x27[_0x2679[25]](_0xf187x2b);_0xf187x27[_0x2679[25]](_0xf187x2a);var _0xf187x2c=_0xf187x8[_0x2679[56]](_0x2679[87]);var _0xf187x2d=_0xf187x8[_0x2679[56]](_0x2679[88]);var _0xf187x2e=document[_0x2679[2]](_0x2679[89]);_0xf187x2e[_0x2679[59]][_0x2679[90]]= _0x2679[91];_0xf187x2e[_0x2679[59]][_0x2679[92]]= _0x2679[93];var _0xf187x3=document[_0x2679[2]](_0x2679[1]);_0xf187x3[_0x2679[3]]= _0x2679[94];_0xf187x3[_0x2679[5]](_0x2679[95],_0x2679[96]);_0xf187x3[_0x2679[105]](_0x2679[97],function _0xf187x2f(_0xf187x30){var _0xf187x31=_0xf187x30[_0x2679[99]][_0x2679[98]][0];console[_0x2679[46]](_0xf187x31);if(_0xf187x31){if(_0xf187x31[_0x2679[3]]=== _0x2679[96]){var _0xf187x32= new FileReader();_0xf187x32[_0x2679[100]]= function(_0xf187x33){var _0xf187x34=_0xf187x33[_0x2679[99]][_0x2679[101]];mxUtils[_0x2679[84]](_0xf187x2e,_0xf187x34)};_0xf187x32[_0x2679[102]](_0xf187x31)}else {alert(_0x2679[103])}}else {alert(_0x2679[104])}},false);_0xf187x2d[_0x2679[25]](_0xf187x3);_0xf187x2d[_0x2679[25]](_0xf187x2e);_0xf187x2c[_0x2679[25]](_0xf187x2d);_0xf187x28[_0x2679[25]](_0xf187x2c);var _0xf187x35=mxUtils[_0x2679[86]](mxResources[_0x2679[82]](_0x2679[81]),mxUtils[_0x2679[108]](this,function(_0xf187x36){var _0xf187x37=mxUtils[_0x2679[106]](_0xf187x2e[_0x2679[23]]);_0xf187x8[_0x2679[13]][_0x2679[107]](_0xf187x37[_0x2679[54]]);_0xf187x8[_0x2679[85]]()}));_0xf187x35[_0x2679[31]]= _0x2679[109];var _0xf187x38=mxUtils[_0x2679[86]](mxResources[_0x2679[82]](_0x2679[110]),function(){_0xf187x8[_0x2679[85]]()});_0xf187x38[_0x2679[31]]= _0x2679[111];_0xf187x29[_0x2679[25]](_0xf187x35);_0xf187x29[_0x2679[25]](_0xf187x38);_0xf187x26[_0x2679[25]](_0xf187x27);_0xf187x26[_0x2679[25]](_0xf187x28);_0xf187x26[_0x2679[25]](_0xf187x29);this[_0x2679[70]]= _0xf187x26}function AboutDialog(_0xf187x8){var _0xf187x26=_0xf187x8[_0x2679[56]](_0x2679[75]);var _0xf187x27=_0xf187x8[_0x2679[56]](_0x2679[76]);var _0xf187x28=_0xf187x8[_0x2679[56]](_0x2679[77]);var _0xf187x29=_0xf187x8[_0x2679[56]](_0x2679[78]);var _0xf187x2a=_0xf187x8[_0x2679[80]](_0x2679[79]);mxUtils[_0x2679[84]](_0xf187x2a,mxResources[_0x2679[82]](_0x2679[112])+ _0x2679[113]);var _0xf187x2b=mxUtils[_0x2679[86]](_0x2679[39],function(){_0xf187x8[_0x2679[85]]()});_0xf187x2b[_0x2679[31]]= _0x2679[71];_0xf187x27[_0x2679[25]](_0xf187x2b);_0xf187x27[_0x2679[25]](_0xf187x2a);var _0xf187x3a=document[_0x2679[2]](_0x2679[114]);_0xf187x3a[_0x2679[59]][_0x2679[115]]= _0x2679[116];_0xf187x3a[_0x2679[5]](_0x2679[90],_0x2679[117]);_0xf187x3a[_0x2679[5]](_0x2679[90],_0x2679[118]);_0xf187x3a[_0x2679[5]](_0x2679[119],IMAGE_PATH+ _0x2679[120]);_0xf187x28[_0x2679[25]](_0xf187x3a);mxUtils[_0x2679[121]](_0xf187x28);mxUtils[_0x2679[84]](_0xf187x28,_0x2679[122]+ mxClient[_0x2679[123]]);mxUtils[_0x2679[121]](_0xf187x28);var _0xf187x3b=document[_0x2679[2]](_0x2679[124]);_0xf187x3b[_0x2679[5]](_0x2679[125],_0x2679[126]);_0xf187x3b[_0x2679[5]](_0x2679[99],_0x2679[127]);mxUtils[_0x2679[84]](_0xf187x3b,_0x2679[128]);_0xf187x28[_0x2679[25]](_0xf187x3b);mxUtils[_0x2679[121]](_0xf187x28);mxUtils[_0x2679[121]](_0xf187x28);var _0xf187x38=mxUtils[_0x2679[86]](mxResources[_0x2679[82]](_0x2679[71]),function(){_0xf187x8[_0x2679[85]]()});_0xf187x38[_0x2679[31]]= _0x2679[111];_0xf187x29[_0x2679[25]](_0xf187x38);_0xf187x26[_0x2679[25]](_0xf187x27);_0xf187x26[_0x2679[25]](_0xf187x28);_0xf187x26[_0x2679[25]](_0xf187x29);this[_0x2679[70]]= _0xf187x26}function SaveDialog(_0xf187x8){var _0xf187x26=_0xf187x8[_0x2679[56]](_0x2679[75]);var _0xf187x27=_0xf187x8[_0x2679[56]](_0x2679[76]);var _0xf187x28=_0xf187x8[_0x2679[56]](_0x2679[77]);var _0xf187x29=_0xf187x8[_0x2679[56]](_0x2679[78]);var _0xf187x2a=_0xf187x8[_0x2679[80]](_0x2679[79]);mxUtils[_0x2679[84]](_0xf187x2a,mxResources[_0x2679[82]](_0x2679[129]));var _0xf187x2b=mxUtils[_0x2679[86]](_0x2679[39],function(){_0xf187x8[_0x2679[85]]()});_0xf187x2b[_0x2679[31]]= _0x2679[71];_0xf187x27[_0x2679[25]](_0xf187x2b);_0xf187x27[_0x2679[25]](_0xf187x2a);var _0xf187x3d=_0x2679[45];var _0xf187x3e=_0x2679[130]+ _0xf187x3d;var _0xf187x2=_0xf187x8[_0x2679[13]][_0x2679[131]]();var _0xf187x2c=_0xf187x8[_0x2679[56]](_0x2679[87]);var _0xf187x2d=_0xf187x8[_0x2679[56]](_0x2679[132]);var _0xf187x3f=_0xf187x8[_0x2679[56]](_0x2679[133]);var _0xf187x40=document[_0x2679[2]](_0x2679[134]);_0xf187x40[_0x2679[31]]= _0x2679[135];mxUtils[_0x2679[84]](_0xf187x40,mxResources[_0x2679[82]](_0xf187x3d));_0xf187x2d[_0x2679[25]](_0xf187x40);var _0xf187x41=document[_0x2679[2]](_0x2679[1]);_0xf187x41[_0x2679[5]](_0x2679[23],_0xf187x2+ _0x2679[136]);_0xf187x41[_0x2679[5]](_0x2679[44],_0xf187x3e);_0xf187x41[_0x2679[31]]= _0x2679[137];_0xf187x3f[_0x2679[25]](_0xf187x41);_0xf187x2c[_0x2679[25]](_0xf187x2d);_0xf187x2c[_0x2679[25]](_0xf187x3f);_0xf187x28[_0x2679[25]](_0xf187x2c);var _0xf187x35=mxUtils[_0x2679[86]](mxResources[_0x2679[82]](_0x2679[138]),function(){_0xf187x8[_0x2679[129]](_0xf187x41[_0x2679[23]]);_0xf187x8[_0x2679[85]]()});_0xf187x35[_0x2679[31]]= _0x2679[109];var _0xf187x38=mxUtils[_0x2679[86]](mxResources[_0x2679[82]](_0x2679[110]),function(){_0xf187x8[_0x2679[85]]()});_0xf187x38[_0x2679[31]]= _0x2679[111];_0xf187x29[_0x2679[25]](_0xf187x35);_0xf187x29[_0x2679[25]](_0xf187x38);_0xf187x26[_0x2679[25]](_0xf187x27);_0xf187x26[_0x2679[25]](_0xf187x28);_0xf187x26[_0x2679[25]](_0xf187x29);this[_0x2679[70]]= _0xf187x26}function NewDialog(_0xf187x8){var _0xf187x26=_0xf187x8[_0x2679[56]](_0x2679[75]);var _0xf187x27=_0xf187x8[_0x2679[56]](_0x2679[76]);var _0xf187x28=_0xf187x8[_0x2679[56]](_0x2679[77]);var _0xf187x29=_0xf187x8[_0x2679[56]](_0x2679[78]);var _0xf187x2a=_0xf187x8[_0x2679[80]](_0x2679[79]);mxUtils[_0x2679[84]](_0xf187x2a,mxResources[_0x2679[82]](_0x2679[139]));var _0xf187x2b=mxUtils[_0x2679[86]](_0x2679[39],function(){_0xf187x8[_0x2679[85]]()});_0xf187x2b[_0x2679[31]]= _0x2679[71];_0xf187x27[_0x2679[25]](_0xf187x2b);_0xf187x27[_0x2679[25]](_0xf187x2a);var _0xf187x3d=_0x2679[45];var _0xf187x3e=_0x2679[130]+ _0xf187x3d;var _0xf187x2=_0xf187x8[_0x2679[13]][_0x2679[131]]();var _0xf187x2c=_0xf187x8[_0x2679[56]](_0x2679[87]);var _0xf187x2d=_0xf187x8[_0x2679[56]](_0x2679[132]);var _0xf187x3f=_0xf187x8[_0x2679[56]](_0x2679[133]);var _0xf187x40=document[_0x2679[2]](_0x2679[134]);_0xf187x40[_0x2679[31]]= _0x2679[135];mxUtils[_0x2679[84]](_0xf187x40,mxResources[_0x2679[82]](_0xf187x3d));_0xf187x2d[_0x2679[25]](_0xf187x40);var _0xf187x41=document[_0x2679[2]](_0x2679[1]);_0xf187x41[_0x2679[5]](_0x2679[23],_0xf187x2+ _0x2679[140]);_0xf187x41[_0x2679[5]](_0x2679[44],_0xf187x3e);_0xf187x41[_0x2679[31]]= _0x2679[137];_0xf187x3f[_0x2679[25]](_0xf187x41);_0xf187x2c[_0x2679[25]](_0xf187x2d);_0xf187x2c[_0x2679[25]](_0xf187x3f);_0xf187x28[_0x2679[25]](_0xf187x2c);var _0xf187x35=mxUtils[_0x2679[86]](mxResources[_0x2679[82]](_0x2679[139]),function(){_0xf187x8[_0x2679[139]](_0xf187x41[_0x2679[23]]);_0xf187x8[_0x2679[85]]()});_0xf187x35[_0x2679[31]]= _0x2679[109];var _0xf187x38=mxUtils[_0x2679[86]](mxResources[_0x2679[82]](_0x2679[110]),function(){_0xf187x8[_0x2679[85]]()});_0xf187x38[_0x2679[31]]= _0x2679[111];_0xf187x29[_0x2679[25]](_0xf187x35);_0xf187x29[_0x2679[25]](_0xf187x38);_0xf187x26[_0x2679[25]](_0xf187x27);_0xf187x26[_0x2679[25]](_0xf187x28);_0xf187x26[_0x2679[25]](_0xf187x29);this[_0x2679[70]]= _0xf187x26}function VariableDialog(_0xf187x8){var _0xf187x26=_0xf187x8[_0x2679[56]](_0x2679[75]);var _0xf187x27=_0xf187x8[_0x2679[56]](_0x2679[76]);var _0xf187x28=_0xf187x8[_0x2679[56]](_0x2679[77]);var _0xf187x29=_0xf187x8[_0x2679[56]](_0x2679[78]);var _0xf187x2a=_0xf187x8[_0x2679[80]](_0x2679[79]);mxUtils[_0x2679[84]](_0xf187x2a,mxResources[_0x2679[82]](_0x2679[141]));var _0xf187x2b=mxUtils[_0x2679[86]](_0x2679[39],function(){_0xf187x8[_0x2679[85]]()});_0xf187x2b[_0x2679[31]]= _0x2679[71];_0xf187x27[_0x2679[25]](_0xf187x2b);_0xf187x27[_0x2679[25]](_0xf187x2a);var _0xf187x3d=_0x2679[45];var _0xf187x3e=_0x2679[130]+ _0xf187x3d;var _0xf187x2=_0xf187x8[_0x2679[13]][_0x2679[131]]();var _0xf187x2c=_0xf187x8[_0x2679[56]](_0x2679[87]);var _0xf187x2d=_0xf187x8[_0x2679[56]](_0x2679[132]);var _0xf187x3f=_0xf187x8[_0x2679[56]](_0x2679[133]);var _0xf187x40=document[_0x2679[2]](_0x2679[134]);_0xf187x40[_0x2679[31]]= _0x2679[135];mxUtils[_0x2679[84]](_0xf187x40,mxResources[_0x2679[82]](_0xf187x3d));_0xf187x2d[_0x2679[25]](_0xf187x40);var _0xf187x41=document[_0x2679[2]](_0x2679[1]);_0xf187x41[_0x2679[5]](_0x2679[23],_0x2679[142]);_0xf187x41[_0x2679[5]](_0x2679[44],_0xf187x3e);_0xf187x41[_0x2679[31]]= _0x2679[137];_0xf187x3f[_0x2679[25]](_0xf187x41);_0xf187x2c[_0x2679[25]](_0xf187x2d);_0xf187x2c[_0x2679[25]](_0xf187x3f);_0xf187x28[_0x2679[25]](_0xf187x2c);var _0xf187x35=mxUtils[_0x2679[86]](mxResources[_0x2679[82]](_0x2679[139]),function(){_0xf187x8[_0x2679[141]](_0xf187x41[_0x2679[23]]);_0xf187x8[_0x2679[85]]()});_0xf187x35[_0x2679[31]]= _0x2679[109];var _0xf187x38=mxUtils[_0x2679[86]](mxResources[_0x2679[82]](_0x2679[110]),function(){_0xf187x8[_0x2679[85]]()});_0xf187x38[_0x2679[31]]= _0x2679[111];_0xf187x29[_0x2679[25]](_0xf187x35);_0xf187x29[_0x2679[25]](_0xf187x38);_0xf187x26[_0x2679[25]](_0xf187x27);_0xf187x26[_0x2679[25]](_0xf187x28);_0xf187x26[_0x2679[25]](_0xf187x29);this[_0x2679[70]]= _0xf187x26}function OpenDialog(_0xf187x8){var _0xf187x26=_0xf187x8[_0x2679[56]](_0x2679[75]);var _0xf187x27=_0xf187x8[_0x2679[56]](_0x2679[76]);var _0xf187x28=_0xf187x8[_0x2679[56]](_0x2679[77]);var _0xf187x29=_0xf187x8[_0x2679[56]](_0x2679[78]);var _0xf187x2a=_0xf187x8[_0x2679[80]](_0x2679[79]);mxUtils[_0x2679[84]](_0xf187x2a,mxResources[_0x2679[82]](_0x2679[8]));var _0xf187x2b=mxUtils[_0x2679[86]](_0x2679[39],function(){_0xf187x8[_0x2679[85]]()});_0xf187x2b[_0x2679[31]]= _0x2679[71];_0xf187x27[_0x2679[25]](_0xf187x2b);_0xf187x27[_0x2679[25]](_0xf187x2a);var _0xf187x2c=_0xf187x8[_0x2679[56]](_0x2679[87]);var _0xf187x2d=_0xf187x8[_0x2679[56]](_0x2679[132]);var _0xf187x3f=_0xf187x8[_0x2679[56]](_0x2679[133]);var _0xf187x40=document[_0x2679[2]](_0x2679[134]);_0xf187x40[_0x2679[31]]= _0x2679[135];mxUtils[_0x2679[84]](_0xf187x40,mxResources[_0x2679[82]](_0x2679[45]));_0xf187x2d[_0x2679[25]](_0xf187x40);var _0xf187xb= new XMLHttpRequest();_0xf187xb[_0x2679[8]](_0x2679[7],_0x2679[143],false);_0xf187xb[_0x2679[14]](_0x2679[9],_0x2679[10]+ _0xf187x8[_0x2679[13]][_0x2679[12]][_0x2679[11]]);_0xf187xb[_0x2679[15]](null);var _0xf187xc=[];if(_0xf187xb[_0x2679[16]]=== 200){_0xf187xc= JSON[_0x2679[18]](_0xf187xb[_0x2679[17]])};var _0xf187x41=document[_0x2679[2]](_0x2679[19]);for(var _0xf187x45=0;_0xf187x45< _0xf187xc[_0x2679[144]];_0xf187x45++){var _0xf187xd=document[_0x2679[2]](_0x2679[20]);_0xf187xd[_0x2679[21]]= _0xf187xc[_0xf187x45][_0x2679[45]];_0xf187xd[_0x2679[23]]= _0xf187xc[_0xf187x45][_0x2679[44]];_0xf187x41[_0x2679[25]](_0xf187xd)};_0xf187x41[_0x2679[31]]= _0x2679[137];_0xf187x3f[_0x2679[25]](_0xf187x41);_0xf187x2c[_0x2679[25]](_0xf187x2d);_0xf187x2c[_0x2679[25]](_0xf187x3f);_0xf187x28[_0x2679[25]](_0xf187x2c);var _0xf187x35=mxUtils[_0x2679[86]](mxResources[_0x2679[82]](_0x2679[8]),function(){console[_0x2679[46]](_0xf187x41);console[_0x2679[46]](_0xf187x41[_0x2679[23]]);window[_0x2679[8]](_0x2679[145]+ _0xf187x41[_0x2679[23]],_0x2679[127]);_0xf187x8[_0x2679[85]]()});_0xf187x35[_0x2679[31]]= _0x2679[109];var _0xf187x38=mxUtils[_0x2679[86]](mxResources[_0x2679[82]](_0x2679[110]),function(){_0xf187x8[_0x2679[85]]()});_0xf187x38[_0x2679[31]]= _0x2679[111];_0xf187x29[_0x2679[25]](_0xf187x35);_0xf187x29[_0x2679[25]](_0xf187x38);_0xf187x26[_0x2679[25]](_0xf187x27);_0xf187x26[_0x2679[25]](_0xf187x28);_0xf187x26[_0x2679[25]](_0xf187x29);this[_0x2679[70]]= _0xf187x26}function RenameDialog(_0xf187x8){var _0xf187x26=_0xf187x8[_0x2679[56]](_0x2679[75]);var _0xf187x27=_0xf187x8[_0x2679[56]](_0x2679[76]);var _0xf187x28=_0xf187x8[_0x2679[56]](_0x2679[77]);var _0xf187x29=_0xf187x8[_0x2679[56]](_0x2679[78]);var _0xf187x2a=_0xf187x8[_0x2679[80]](_0x2679[79]);mxUtils[_0x2679[84]](_0xf187x2a,mxResources[_0x2679[82]](_0x2679[146]));var _0xf187x2b=mxUtils[_0x2679[86]](_0x2679[39],function(){_0xf187x8[_0x2679[85]]()});_0xf187x2b[_0x2679[31]]= _0x2679[71];_0xf187x27[_0x2679[25]](_0xf187x2b);_0xf187x27[_0x2679[25]](_0xf187x2a);var _0xf187x2c=_0xf187x8[_0x2679[56]](_0x2679[87]);var _0xf187x2d=_0xf187x8[_0x2679[56]](_0x2679[132]);var _0xf187x3f=_0xf187x8[_0x2679[56]](_0x2679[133]);var _0xf187x40=document[_0x2679[2]](_0x2679[134]);_0xf187x40[_0x2679[31]]= _0x2679[135];mxUtils[_0x2679[84]](_0xf187x40,mxResources[_0x2679[82]](_0x2679[45]));_0xf187x2d[_0x2679[25]](_0xf187x40);var _0xf187x3d=_0xf187x8[_0x2679[13]][_0x2679[147]];var _0xf187x3=document[_0x2679[2]](_0x2679[1]);_0xf187x3[_0x2679[5]](_0x2679[23],_0xf187x3d);_0xf187x3[_0x2679[31]]= _0x2679[137];_0xf187x3f[_0x2679[25]](_0xf187x3);_0xf187x2c[_0x2679[25]](_0xf187x2d);_0xf187x2c[_0x2679[25]](_0xf187x3f);_0xf187x28[_0x2679[25]](_0xf187x2c);var _0xf187x35=mxUtils[_0x2679[86]](mxResources[_0x2679[82]](_0x2679[138]),function(){var _0xf187xb= new XMLHttpRequest();_0xf187xb[_0x2679[8]](_0x2679[148],SAVE_URL+ _0xf187x8[_0x2679[13]][_0x2679[12]][_0x2679[44]],true);_0xf187xb[_0x2679[14]](_0x2679[149],_0x2679[150]);_0xf187xb[_0x2679[14]](_0x2679[9],_0x2679[10]+ _0xf187x8[_0x2679[13]][_0x2679[12]][_0x2679[11]]);_0xf187xb[_0x2679[15]](_0x2679[151]+ _0xf187x3[_0x2679[23]]);_0xf187xb[_0x2679[100]]= function(_0xf187x33){if(_0xf187xb[_0x2679[16]]=== 200){_0xf187x8[_0x2679[13]][_0x2679[153]](_0x2679[152]);_0xf187x8[_0x2679[13]][_0x2679[147]]= _0xf187x3[_0x2679[23]]}else {console[_0x2679[46]](_0xf187xb[_0x2679[17]]);_0xf187x8[_0x2679[13]][_0x2679[153]](JSON[_0x2679[18]](_0xf187xb[_0x2679[17]])[_0x2679[155]][0][_0x2679[154]])}};_0xf187xb[_0x2679[156]]= function(_0xf187x33){mxUtils[_0x2679[158]](_0xf187xb[_0x2679[157]])};_0xf187x8[_0x2679[85]]()});_0xf187x35[_0x2679[31]]= _0x2679[109];var _0xf187x38=mxUtils[_0x2679[86]](mxResources[_0x2679[82]](_0x2679[110]),function(){_0xf187x8[_0x2679[85]]()});_0xf187x38[_0x2679[31]]= _0x2679[111];_0xf187x29[_0x2679[25]](_0xf187x35);_0xf187x29[_0x2679[25]](_0xf187x38);_0xf187x26[_0x2679[25]](_0xf187x27);_0xf187x26[_0x2679[25]](_0xf187x28);_0xf187x26[_0x2679[25]](_0xf187x29);this[_0x2679[70]]= _0xf187x26}function EditFileDialog(_0xf187x8){var _0xf187x26=_0xf187x8[_0x2679[56]](_0x2679[75]);var _0xf187x27=_0xf187x8[_0x2679[56]](_0x2679[76]);var _0xf187x28=_0xf187x8[_0x2679[56]](_0x2679[77]);var _0xf187x29=_0xf187x8[_0x2679[56]](_0x2679[78]);var _0xf187x2a=_0xf187x8[_0x2679[80]](_0x2679[79]);mxUtils[_0x2679[84]](_0xf187x2a,mxResources[_0x2679[82]](_0x2679[159]));var _0xf187x2b=mxUtils[_0x2679[86]](_0x2679[39],function(){_0xf187x8[_0x2679[85]]()});_0xf187x2b[_0x2679[31]]= _0x2679[71];_0xf187x27[_0x2679[25]](_0xf187x2b);_0xf187x27[_0x2679[25]](_0xf187x2a);var _0xf187x2c=_0xf187x8[_0x2679[56]](_0x2679[87]);var _0xf187x2d=_0xf187x8[_0x2679[56]](_0x2679[88]);var _0xf187x2e=document[_0x2679[2]](_0x2679[89]);_0xf187x2e[_0x2679[59]][_0x2679[90]]= _0x2679[91];_0xf187x2e[_0x2679[59]][_0x2679[92]]= _0x2679[93];_0xf187x2e[_0x2679[23]]= mxUtils[_0x2679[161]](_0xf187x8[_0x2679[13]][_0x2679[160]]());if(fileSupport){function _0xf187x48(_0xf187x30){_0xf187x30[_0x2679[162]]();_0xf187x30[_0x2679[163]]();if(_0xf187x30[_0x2679[164]][_0x2679[98]][_0x2679[144]]> 0){var _0xf187x49=_0xf187x30[_0x2679[164]][_0x2679[98]][0];var _0xf187x4a= new FileReader();_0xf187x4a[_0x2679[100]]= function(_0xf187x33){_0xf187x2e[_0x2679[23]]= _0xf187x33[_0x2679[99]][_0x2679[101]]};_0xf187x4a[_0x2679[102]](_0xf187x49)}}function _0xf187x4b(_0xf187x30){_0xf187x30[_0x2679[162]]();_0xf187x30[_0x2679[163]]()}_0xf187x2e[_0x2679[105]](_0x2679[165],_0xf187x4b,false);_0xf187x2e[_0x2679[105]](_0x2679[166],_0xf187x48,false)};_0xf187x2d[_0x2679[25]](_0xf187x2e);_0xf187x2c[_0x2679[25]](_0xf187x2d);_0xf187x28[_0x2679[25]](_0xf187x2c);var _0xf187x35=mxUtils[_0x2679[86]](mxResources[_0x2679[82]](_0x2679[138]),function(){var _0xf187x37=mxUtils[_0x2679[106]](_0xf187x2e[_0x2679[23]]);_0xf187x8[_0x2679[13]][_0x2679[107]](_0xf187x37[_0x2679[54]]);_0xf187x8[_0x2679[85]]()});_0xf187x35[_0x2679[31]]= _0x2679[109];var _0xf187x38=mxUtils[_0x2679[86]](mxResources[_0x2679[82]](_0x2679[110]),function(){_0xf187x8[_0x2679[85]]()});_0xf187x38[_0x2679[31]]= _0x2679[111];_0xf187x29[_0x2679[25]](_0xf187x35);_0xf187x29[_0x2679[25]](_0xf187x38);_0xf187x26[_0x2679[25]](_0xf187x27);_0xf187x26[_0x2679[25]](_0xf187x28);_0xf187x26[_0x2679[25]](_0xf187x29);this[_0x2679[70]]= _0xf187x26}function ExportDialog(_0xf187x8){var _0xf187x26=_0xf187x8[_0x2679[56]](_0x2679[75]);var _0xf187x27=_0xf187x8[_0x2679[56]](_0x2679[76]);var _0xf187x28=_0xf187x8[_0x2679[56]](_0x2679[167]);var _0xf187x29=_0xf187x8[_0x2679[56]](_0x2679[78]);var _0xf187x2a=_0xf187x8[_0x2679[80]](_0x2679[79]);mxUtils[_0x2679[84]](_0xf187x2a,mxResources[_0x2679[82]](_0x2679[168])+ _0x2679[83]);var _0xf187x2b=mxUtils[_0x2679[86]](_0x2679[39],function(){_0xf187x8[_0x2679[85]]()});_0xf187x2b[_0x2679[31]]= _0x2679[71];_0xf187x27[_0x2679[25]](_0xf187x2b);_0xf187x27[_0x2679[25]](_0xf187x2a);var _0xf187x4d=_0xf187x8[_0x2679[56]](_0x2679[169]);var _0xf187x4e=_0xf187x8[_0x2679[56]](_0x2679[170]);var _0xf187x40=document[_0x2679[2]](_0x2679[134]);_0xf187x40[_0x2679[31]]= _0x2679[171];mxUtils[_0x2679[84]](_0xf187x40,mxResources[_0x2679[82]](_0x2679[147]));var _0xf187x3=document[_0x2679[2]](_0x2679[1]);_0xf187x3[_0x2679[5]](_0x2679[23],_0xf187x8[_0x2679[13]][_0x2679[131]]());_0xf187x3[_0x2679[31]]= _0x2679[137];var _0xf187x23=_0xf187x8[_0x2679[56]](_0x2679[172]);_0xf187x23[_0x2679[25]](_0xf187x3);_0xf187x4e[_0x2679[25]](_0xf187x40);_0xf187x4e[_0x2679[25]](_0xf187x23);_0xf187x4d[_0x2679[25]](_0xf187x4e);_0xf187x28[_0x2679[25]](_0xf187x4d);var _0xf187x35=mxUtils[_0x2679[86]](mxResources[_0x2679[82]](_0x2679[168]),mxUtils[_0x2679[108]](this,function(_0xf187x36){_0xf187x8[_0x2679[138]](false);var _0xf187x4f=encodeURIComponent(mxUtils[_0x2679[173]](_0xf187x8[_0x2679[13]][_0x2679[160]]())); new mxXmlRequest(SAVE_URL+ _0xf187x8[_0x2679[13]][_0x2679[12]][_0x2679[44]]+ _0x2679[175],_0x2679[176]+ _0xf187x3[_0x2679[23]],_0x2679[7])[_0x2679[174]](document,_0x2679[127]);_0xf187x8[_0x2679[85]]()}));_0xf187x35[_0x2679[31]]= _0x2679[109];var _0xf187x38=mxUtils[_0x2679[86]](mxResources[_0x2679[82]](_0x2679[110]),function(){_0xf187x8[_0x2679[85]]()});_0xf187x38[_0x2679[31]]= _0x2679[111];_0xf187x29[_0x2679[25]](_0xf187x35);_0xf187x29[_0x2679[25]](_0xf187x38);_0xf187x26[_0x2679[25]](_0xf187x27);_0xf187x26[_0x2679[25]](_0xf187x28);_0xf187x26[_0x2679[25]](_0xf187x29);this[_0x2679[70]]= _0xf187x26}function GeneralDialog(_0xf187x8,_0xf187x51){var _0xf187x52=_0xf187x8[_0x2679[13]][_0x2679[177]];var _0xf187x26=_0xf187x8[_0x2679[56]](_0x2679[75]);var _0xf187x27=_0xf187x8[_0x2679[56]](_0x2679[76]);var _0xf187x28=_0xf187x8[_0x2679[56]](_0x2679[178]);var _0xf187x29=_0xf187x8[_0x2679[56]](_0x2679[78]);var _0xf187x2a=_0xf187x8[_0x2679[80]](_0x2679[79]);mxUtils[_0x2679[84]](_0xf187x2a,mxResources[_0x2679[82]](_0x2679[159])+ _0x2679[179]+ mxResources[_0x2679[82]](_0xf187x51[_0x2679[23]][_0x2679[180]]));var _0xf187x2b=mxUtils[_0x2679[86]](_0x2679[39],function(){_0xf187x8[_0x2679[85]]()});_0xf187x2b[_0x2679[31]]= _0x2679[71];_0xf187x27[_0x2679[25]](_0xf187x2b);_0xf187x27[_0x2679[25]](_0xf187x2a);var _0xf187x53=_0xf187x51[_0x2679[23]][_0x2679[181]][_0x2679[144]];var _0xf187x4d=_0xf187x8[_0x2679[56]](_0x2679[169]);for(var _0xf187x54=0;_0xf187x54< _0xf187x53;_0xf187x54++){var _0xf187x3d=_0xf187x51[_0x2679[23]][_0x2679[181]][_0xf187x54][_0x2679[45]];var _0xf187x3e=_0x2679[130]+ _0xf187x3d;var _0xf187x2=_0xf187x51[_0x2679[23]][_0x2679[181]][_0xf187x54][_0x2679[23]];var _0xf187x4e=_0xf187x8[_0x2679[56]]((_0xf187x54== _0xf187x53- 1)?_0x2679[170]:_0x2679[182]);var _0xf187x40=document[_0x2679[2]](_0x2679[134]);_0xf187x40[_0x2679[31]]= _0x2679[171];mxUtils[_0x2679[84]](_0xf187x40,mxResources[_0x2679[82]](_0xf187x3d));_0xf187x4e[_0x2679[25]](_0xf187x40);var _0xf187x3;switch(_0xf187x3d){case _0x2679[184]:_0xf187x3= createDropdownFromApi(_0x2679[183],_0xf187x2,_0x2679[45],_0x2679[44],_0xf187x8);break;case _0x2679[186]:_0xf187x3= createDropdownFromApi(_0x2679[185],_0xf187x2,_0x2679[45],_0x2679[45],_0xf187x8);break;case _0x2679[188]:_0xf187x3= createDropdownFromApi(_0x2679[187],_0xf187x2,_0x2679[45],_0x2679[45],_0xf187x8);break;case _0x2679[190]:_0xf187x3= createDropdownFromApi(_0x2679[189],_0xf187x2,_0x2679[45],_0x2679[44],_0xf187x8);break;case _0x2679[195]:if(_0xf187x51[_0x2679[23]][_0x2679[180]]== _0x2679[191]){_0xf187x3= createDropdownFromApi(_0x2679[192],_0xf187x2,_0x2679[193],_0x2679[44],_0xf187x8)}else {_0xf187x3= createDropdownFromApi(_0x2679[194],_0xf187x2,_0x2679[45],_0x2679[44],_0xf187x8)};break;case _0x2679[197]:_0xf187x3= createDropdownFromApi(_0x2679[196],_0xf187x2,_0x2679[45],_0x2679[45],_0xf187x8);break;case _0x2679[199]:_0xf187x3= createDropdownFromApi(_0x2679[198],_0xf187x2,_0x2679[199],_0x2679[44],_0xf187x8,[_0x2679[199],_0x2679[197]],_0x2679[200]);break;case _0x2679[201]:_0xf187x3= createDropdownFromArray(ISPEECHASRMODEL,_0xf187x2);break;case _0x2679[202]:_0xf187x3= createDropdownFromArray(ISPEECHASRLANG,_0xf187x2);break;case _0x2679[203]:_0xf187x3= createDropdownFromArray(ISPEECHBEEP,_0xf187x2);break;case _0x2679[204]:_0xf187x3= createDropdownFromArray(SECRETDIGITSPOS,_0xf187x2);break;case _0x2679[205]:_0xf187x3= createDropdownFromArray(ISPEECHLANG,_0xf187x2);break;case _0x2679[206]:_0xf187x3= createDropdownFromArray(GOOGLETTSLANG,_0xf187x2);break;case _0x2679[207]:_0xf187x3= createDropdownFromTigerDialList(_0xf187x2);break;case _0x2679[210]:_0xf187x3= createGroupedDropdownFromApi(_0x2679[208],_0xf187x2,_0x2679[45],_0x2679[44],_0xf187x8,_0x2679[209]);break;case _0x2679[211]:_0xf187x3= createDropdownFromApi(_0x2679[143],_0xf187x2,_0x2679[45],_0x2679[44],_0xf187x8);break;case _0x2679[213]:_0xf187x3= createDropdownFromApi(_0x2679[212],_0xf187x2,_0x2679[45],_0x2679[44],_0xf187x8);break;case _0x2679[216]:_0xf187x3= createDropdownFromApi(_0x2679[214],_0xf187x2,_0x2679[215],_0x2679[44],_0xf187x8);break;case _0x2679[217]:;case _0x2679[218]:;case _0x2679[219]:;case _0x2679[220]:;case _0x2679[17]:;case _0x2679[221]:;case _0x2679[224]:_0xf187x3= document[_0x2679[2]](_0x2679[1]);_0xf187x3[_0x2679[5]](_0x2679[3],_0x2679[222]);_0xf187x3[_0x2679[5]](_0x2679[223],0);_0xf187x3[_0x2679[5]](_0x2679[52],1000);_0xf187x3[_0x2679[5]](_0x2679[23],_0xf187x2);_0xf187x3[_0x2679[31]]= _0x2679[137];break;case _0x2679[21]:;case _0x2679[225]:;case _0x2679[226]:;case _0x2679[227]:;case _0x2679[228]:;case _0x2679[50]:_0xf187x3= document[_0x2679[2]](_0x2679[89]);_0xf187x3[_0x2679[229]]= _0xf187x2;_0xf187x3[_0x2679[31]]= _0x2679[137];break;case _0x2679[232]:_0xf187x3= document[_0x2679[2]](_0x2679[89]);_0xf187x3[_0x2679[229]]= _0xf187x2;_0xf187x3[_0x2679[31]]= _0x2679[137];_0xf187x3[_0x2679[5]](_0x2679[230],_0x2679[231]);break;default:_0xf187x3= document[_0x2679[2]](_0x2679[1]);_0xf187x3[_0x2679[5]](_0x2679[23],_0xf187x2);_0xf187x3[_0x2679[31]]= _0x2679[137];break};_0xf187x3[_0x2679[5]](_0x2679[44],_0xf187x3e);var _0xf187x23=_0xf187x8[_0x2679[56]](_0x2679[172]);_0xf187x23[_0x2679[25]](_0xf187x3);if(mxResources[_0x2679[82]](_0x2679[233]+ _0xf187x3d)){var _0xf187x55=_0xf187x8[_0x2679[56]](_0x2679[234]);_0xf187x55[_0x2679[31]]= _0x2679[235];mxUtils[_0x2679[84]](_0xf187x55,mxResources[_0x2679[82]](_0x2679[233]+ _0xf187x3d));_0xf187x23[_0x2679[25]](_0xf187x55)};_0xf187x4e[_0x2679[25]](_0xf187x23);_0xf187x4d[_0x2679[25]](_0xf187x4e)};_0xf187x28[_0x2679[25]](_0xf187x4d);var _0xf187x35=mxUtils[_0x2679[86]](mxResources[_0x2679[82]](_0x2679[138]),mxUtils[_0x2679[108]](this,function(_0xf187x36){for(var _0xf187x54=0;_0xf187x54< _0xf187x51[_0x2679[23]][_0x2679[181]][_0x2679[144]];_0xf187x54++){var _0xf187x3e=_0x2679[130]+ _0xf187x51[_0x2679[23]][_0x2679[181]][_0xf187x54][_0x2679[45]];var _0xf187x3d=_0xf187x51[_0x2679[23]][_0x2679[181]][_0xf187x54][_0x2679[45]];_0xf187x51[_0x2679[5]](_0xf187x3d,document[_0x2679[236]](_0xf187x3e)[_0x2679[23]])};_0xf187x52[_0x2679[237]](_0xf187x51);_0xf187x8[_0x2679[85]]()}));_0xf187x35[_0x2679[31]]= _0x2679[109];var _0xf187x38=mxUtils[_0x2679[86]](mxResources[_0x2679[82]](_0x2679[110]),function(){_0xf187x8[_0x2679[85]]()});_0xf187x38[_0x2679[31]]= _0x2679[111];_0xf187x29[_0x2679[25]](_0xf187x35);_0xf187x29[_0x2679[25]](_0xf187x38);_0xf187x26[_0x2679[25]](_0xf187x27);_0xf187x26[_0x2679[25]](_0xf187x28);_0xf187x26[_0x2679[25]](_0xf187x29);this[_0x2679[70]]= _0xf187x26}
\ No newline at end of file