/// <reference path="Xrm.js" />

var EntityLogicalName = "phonecall";
var Form_dcfacadb_b9dd_44ff_b8a7_cd52179c92dc_Properties = {
    actualdurationminutes: "actualdurationminutes",
    category: "category",
    description: "description",
    directioncode: "directioncode",
    from: "from",
    ownerid: "ownerid",
    phonenumber: "phonenumber",
    prioritycode: "prioritycode",
    regardingobjectid: "regardingobjectid",
    scheduledend: "scheduledend",
    subcategory: "subcategory",
    subject: "subject",
    to: "to"
};

var Form_dcfacadb_b9dd_44ff_b8a7_cd52179c92dc_Controls = {
    actualdurationminutes: "actualdurationminutes",
    category: "category",
    description: "description",
    directioncode: "directioncode",
    from: "from",
    notescontrol: "notescontrol",
    ownerid: "ownerid",
    phonenumber: "phonenumber",
    prioritycode: "prioritycode",
    regardingobjectid: "regardingobjectid",
    scheduledend: "scheduledend",
    subcategory: "subcategory",
    subject: "subject",
    to: "to"
};

var pageData = {
    "Event": "none",
    "SaveMode": 1,
    "EventSource": null,
    "AuthenticationHeader": "",
    "CurrentTheme": "Default",
    "OrgLcid": 1033,
    "OrgUniqueName": "",
    "QueryStringParameters": {
        "_gridType": "4210",
        "etc": "4210",
        "id": "",
        "pagemode": "iframe",
        "preloadcache": "1344548892170",
        "rskey": "141637534"
    },
    "ServerUrl": "",
    "UserId": "",
    "UserLcid": 1033,
    "UserRoles": [""],
    "isOutlookClient": false,
    "isOutlookOnline": true,
    "DataXml": "",
    "EntityName": "phonecall",
    "Id": "",
    "IsDirty": false,
    "CurrentControl": "",
    "CurrentForm": null,
    "Forms": [],
    "FormType": 2,
    "ViewPortHeight": 558,
    "ViewPortWidth": 1231,
    "Attributes": [{
        "Name": "actualdurationminutes",
        "Value": null,
        "Type": "integer",
        "Format": "none",
        "IsDirty": false,
        "RequiredLevel": "none",
        "SubmitMode": "dirty",
        "UserPrivilege": {
            "canRead": true,
            "canUpdate": true,
            "canCreate": true
        },
        "Max": 2147483647,
        "Min": 0,
        "Precision": 0,
        "Controls": [{
            "Name": "actualdurationminutes"
        }]
    },
    {
        "Name": "category",
        "Value": "",
        "Type": "string",
        "Format": "text",
        "IsDirty": false,
        "RequiredLevel": "none",
        "SubmitMode": "dirty",
        "UserPrivilege": {
            "canRead": true,
            "canUpdate": true,
            "canCreate": true
        },
        "MaxLength": 250,
        "Controls": [{
            "Name": "category"
        }]
    },
    {
        "Name": "description",
        "Value": "",
        "Type": "memo",
        "Format": "text",
        "IsDirty": false,
        "RequiredLevel": "none",
        "SubmitMode": "dirty",
        "UserPrivilege": {
            "canRead": true,
            "canUpdate": true,
            "canCreate": true
        },
        "MaxLength": 2000,
        "Controls": [{
            "Name": "description"
        }]
    },
    {
        "Name": "directioncode",
        "Value": null,
        "Type": "boolean",
        "Format": null,
        "IsDirty": false,
        "RequiredLevel": "none",
        "SubmitMode": "dirty",
        "UserPrivilege": {
            "canRead": true,
            "canUpdate": true,
            "canCreate": true
        },
        "InitialValue": null,
        "Controls": [{
            "Name": "directioncode"
        }]
    },
    {
        "Name": "from",
        "Value": [{
            "entityType": "Unknown",
            "id": "{27ACAE0A-5D79-E111-BBD3-2657AEB3167B}",
            "name": "Temp"
        }],
        "Type": "lookup",
        "Format": null,
        "IsDirty": false,
        "RequiredLevel": "none",
        "SubmitMode": "dirty",
        "UserPrivilege": {
            "canRead": true,
            "canUpdate": true,
            "canCreate": true
        },
        "Controls": [{
            "Name": "from"
        }]
    },
    {
        "Name": "ownerid",
        "Value": [{
            "entityType": "Unknown",
            "id": "{27ACAE0A-5D79-E111-BBD3-2657AEB3167B}",
            "name": "Temp"
        }],
        "Type": "lookup",
        "Format": null,
        "IsDirty": false,
        "RequiredLevel": "none",
        "SubmitMode": "dirty",
        "UserPrivilege": {
            "canRead": true,
            "canUpdate": true,
            "canCreate": true
        },
        "Controls": [{
            "Name": "ownerid"
        }]
    },
    {
        "Name": "phonenumber",
        "Value": "",
        "Type": "string",
        "Format": "text",
        "IsDirty": false,
        "RequiredLevel": "none",
        "SubmitMode": "dirty",
        "UserPrivilege": {
            "canRead": true,
            "canUpdate": true,
            "canCreate": true
        },
        "MaxLength": 200,
        "Controls": [{
            "Name": "phonenumber"
        }]
    },
    {
        "Name": "prioritycode",
        "Value": null,
        "Type": "optionset",
        "Format": null,
        "IsDirty": false,
        "RequiredLevel": "none",
        "SubmitMode": "dirty",
        "UserPrivilege": {
            "canRead": true,
            "canUpdate": true,
            "canCreate": true
        },
        "InitialValue": 930650000,
        "Options": [{
            "text": "Low",
            "value": 0
        },
        {
            "text": "Normal",
            "value": 1
        },
        {
            "text": "High",
            "value": 2
        }],
        "SelectedOption": {
            "option": "Low",
            "value": 0
        },
        "Text": "Low",
        "Controls": [{
            "Name": "prioritycode"
        }]
    },
    {
        "Name": "regardingobjectid",
        "Value": [{
            "entityType": "Unknown",
            "id": "{27ACAE0A-5D79-E111-BBD3-2657AEB3167B}",
            "name": "Temp"
        }],
        "Type": "lookup",
        "Format": null,
        "IsDirty": false,
        "RequiredLevel": "none",
        "SubmitMode": "dirty",
        "UserPrivilege": {
            "canRead": true,
            "canUpdate": true,
            "canCreate": true
        },
        "Controls": [{
            "Name": "regardingobjectid"
        }]
    },
    {
        "Name": "scheduledend",
        "Value": null,
        "Type": "datetime",
        "Format": "date",
        "IsDirty": false,
        "RequiredLevel": "none",
        "SubmitMode": "dirty",
        "UserPrivilege": {
            "canRead": true,
            "canUpdate": true,
            "canCreate": true
        },
        "Controls": [{
            "Name": "scheduledend"
        }]
    },
    {
        "Name": "subcategory",
        "Value": "",
        "Type": "string",
        "Format": "text",
        "IsDirty": false,
        "RequiredLevel": "none",
        "SubmitMode": "dirty",
        "UserPrivilege": {
            "canRead": true,
            "canUpdate": true,
            "canCreate": true
        },
        "MaxLength": 250,
        "Controls": [{
            "Name": "subcategory"
        }]
    },
    {
        "Name": "subject",
        "Value": "",
        "Type": "string",
        "Format": "text",
        "IsDirty": false,
        "RequiredLevel": "none",
        "SubmitMode": "dirty",
        "UserPrivilege": {
            "canRead": true,
            "canUpdate": true,
            "canCreate": true
        },
        "MaxLength": 200,
        "Controls": [{
            "Name": "subject"
        }]
    },
    {
        "Name": "to",
        "Value": [{
            "entityType": "Unknown",
            "id": "{27ACAE0A-5D79-E111-BBD3-2657AEB3167B}",
            "name": "Temp"
        }],
        "Type": "lookup",
        "Format": null,
        "IsDirty": false,
        "RequiredLevel": "none",
        "SubmitMode": "dirty",
        "UserPrivilege": {
            "canRead": true,
            "canUpdate": true,
            "canCreate": true
        },
        "Controls": [{
            "Name": "to"
        }]
    }],
    "AttributesLength": 13,
    "Controls": [{
        "Name": "actualdurationminutes",
        "Type": "standard",
        "Disabled": false,
        "Visible": true,
        "Label": "Duration",
        "Attribute": "actualdurationminutes"
    },
    {
        "Name": "category",
        "Type": "standard",
        "Disabled": false,
        "Visible": true,
        "Label": "Category",
        "Attribute": "category"
    },
    {
        "Name": "description",
        "Type": "standard",
        "Disabled": false,
        "Visible": true,
        "Label": "Description",
        "Attribute": "description"
    },
    {
        "Name": "directioncode",
        "Type": "standard",
        "Disabled": false,
        "Visible": true,
        "Label": "Direction",
        "Attribute": "directioncode"
    },
    {
        "Name": "from",
        "Type": "standard",
        "Disabled": false,
        "Visible": true,
        "Label": "Call From",
        "Attribute": "from"
    },
    {
        "Name": "ownerid",
        "Type": "standard",
        "Disabled": false,
        "Visible": true,
        "Label": "Owner",
        "Attribute": "ownerid"
    },
    {
        "Name": "phonenumber",
        "Type": "standard",
        "Disabled": false,
        "Visible": true,
        "Label": "Phone Number",
        "Attribute": "phonenumber"
    },
    {
        "Name": "prioritycode",
        "Type": "standard",
        "Disabled": false,
        "Visible": true,
        "Label": "Priority",
        "Attribute": "prioritycode"
    },
    {
        "Name": "regardingobjectid",
        "Type": "standard",
        "Disabled": false,
        "Visible": true,
        "Label": "Regarding",
        "Attribute": "regardingobjectid"
    },
    {
        "Name": "scheduledend",
        "Type": "standard",
        "Disabled": false,
        "Visible": true,
        "Label": "Due",
        "Attribute": "scheduledend"
    },
    {
        "Name": "subcategory",
        "Type": "standard",
        "Disabled": false,
        "Visible": true,
        "Label": "Sub-Category",
        "Attribute": "subcategory"
    },
    {
        "Name": "subject",
        "Type": "standard",
        "Disabled": false,
        "Visible": true,
        "Label": "Subject",
        "Attribute": "subject"
    },
    {
        "Name": "to",
        "Type": "standard",
        "Disabled": false,
        "Visible": true,
        "Label": "Call To",
        "Attribute": "to"
    }],
    "ControlsLength": 13,
    "Navigation": [],
    "Tabs": [{
        "Label": "Phone Call",
        "Name": "phonecall",
        "DisplayState": "expanded",
        "Visible": true,
        "Sections": [{
            "Label": "General Information",
            "Name": "general information",
            "Visible": true,
            "Controls": [{
                "Name": "from"
            },
            {
                "Name": "phonenumber"
            },
            {
                "Name": "to"
            },
            {
                "Name": "directioncode"
            }]
        },
        {
            "Label": "Phone Call Description",
            "Name": "phone call description",
            "Visible": true,
            "Controls": [{
                "Name": "subject"
            },
            {
                "Name": "description"
            }]
        },
        {
            "Label": "Phone Call Details",
            "Name": "phone call details",
            "Visible": true,
            "Controls": [{
                "Name": "regardingobjectid"
            },
            {
                "Name": "ownerid"
            },
            {
                "Name": "actualdurationminutes"
            },
            {
                "Name": "prioritycode"
            },
            {
                "Name": "scheduledend"
            },
            {
                "Name": "category"
            },
            {
                "Name": "subcategory"
            }]
        }]
    },
    {
        "Label": "Notes",
        "Name": "notes",
        "DisplayState": "expanded",
        "Visible": true,
        "Sections": [{
            "Label": "Notes",
            "Name": "notes",
            "Visible": true,
            "Controls": [{
                "Name": "notescontrol"
            }]
        }]
    }]
};

var Xrm = new _xrm(pageData);