123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271 |
- <?php
- //application details
- $apps[$x]['name'] = "User Contacts";
- $apps[$x]['uuid'] = 'c82c2d32-301f-d3bd-50ad-34d75419c778';
- $apps[$x]['category'] = 'System';
- $apps[$x]['subcategory'] = '';
- $apps[$x]['version'] = '';
- $apps[$x]['license'] = 'Mozilla Public License 1.1';
- $apps[$x]['url'] = 'http://www.fusionpbx.com';
- $apps[$x]['description']['en'] = 'Manage User Contacts.';
- //menu details
- $apps[$x]['menu'][0]['title']['en'] = 'User Contacts';
- $apps[$x]['menu'][0]['uuid'] = '87ac2ec3-fa23-2a60-6de6-07ac2a8aa4d9';
- $apps[$x]['menu'][0]['parent_uuid'] = 'fd29e39c-c936-f5fc-8e2b-611681b266b5';
- $apps[$x]['menu'][0]['category'] = 'internal';
- $apps[$x]['menu'][0]['path'] = '/app/user_contacts/users.php';
- $apps[$x]['menu'][0]['groups'][] = 'admin';
- $apps[$x]['menu'][0]['groups'][] = 'superadmin';
- //permission details
- $apps[$x]['permissions'][0]['name'] = 'contacts_view';
- $apps[$x]['permissions'][0]['groups'][] = 'admin';
- $apps[$x]['permissions'][0]['groups'][] = 'superadmin';
- $apps[$x]['permissions'][1]['name'] = 'contacts_add';
- $apps[$x]['permissions'][1]['groups'][] = 'admin';
- $apps[$x]['permissions'][1]['groups'][] = 'superadmin';
- $apps[$x]['permissions'][2]['name'] = 'contacts_edit';
- $apps[$x]['permissions'][2]['groups'][] = 'admin';
- $apps[$x]['permissions'][2]['groups'][] = 'superadmin';
- $apps[$x]['permissions'][3]['name'] = 'contacts_delete';
- $apps[$x]['permissions'][3]['groups'][] = 'admin';
- $apps[$x]['permissions'][3]['groups'][] = 'superadmin';
- //schema details
- $y = 0; //table array index
- $z = 0; //field array index
- $apps[$x]['db'][$y]['table'] = 'v_users';
- $apps[$x]['db'][$y]['fields'][$z]['name'] = 'id';
- $apps[$x]['db'][$y]['fields'][$z]['type']['pgsql'] = 'serial';
- $apps[$x]['db'][$y]['fields'][$z]['type']['sqlite'] = 'integer';
- $apps[$x]['db'][$y]['fields'][$z]['type']['mysql'] = 'INT NOT NULL AUTO_INCREMENT';
- $apps[$x]['db'][$y]['fields'][$z]['description'] = '';
- $apps[$x]['db'][$y]['fields'][$z]['deprecated'] = 'true';
- $z++;
- $apps[$x]['db'][$y]['fields'][$z]['name'] = 'domain_uuid';
- $apps[$x]['db'][$y]['fields'][$z]['type']['pgsql'] = 'uuid';
- $apps[$x]['db'][$y]['fields'][$z]['type']['sqlite'] = 'text';
- $apps[$x]['db'][$y]['fields'][$z]['type']['mysql'] = 'char(36)';
- $apps[$x]['db'][$y]['fields'][$z]['key'] = 'foreign';
- $apps[$x]['db'][$y]['fields'][$z]['description'] = '';
- $z++;
- $apps[$x]['db'][$y]['fields'][$z]['name'] = 'v_id';
- $apps[$x]['db'][$y]['fields'][$z]['type'] = 'text';
- $apps[$x]['db'][$y]['fields'][$z]['description'] = '';
- $apps[$x]['db'][$y]['fields'][$z]['deprecated'] = 'true';
- $z++;
- $apps[$x]['db'][$y]['fields'][$z]['name'] = 'user_uuid';
- $apps[$x]['db'][$y]['fields'][$z]['type']['pgsql'] = 'uuid';
- $apps[$x]['db'][$y]['fields'][$z]['type']['sqlite'] = 'text';
- $apps[$x]['db'][$y]['fields'][$z]['type']['mysql'] = 'char(36)';
- $apps[$x]['db'][$y]['fields'][$z]['key'] = 'primary';
- $apps[$x]['db'][$y]['fields'][$z]['description'] = '';
- $z++;
- $apps[$x]['db'][$y]['fields'][$z]['name'] = 'username';
- $apps[$x]['db'][$y]['fields'][$z]['type'] = 'text';
- $apps[$x]['db'][$y]['fields'][$z]['description'] = '';
- $z++;
- $apps[$x]['db'][$y]['fields'][$z]['name'] = 'password';
- $apps[$x]['db'][$y]['fields'][$z]['type'] = 'text';
- $apps[$x]['db'][$y]['fields'][$z]['description'] = '';
- $z++;
- $apps[$x]['db'][$y]['fields'][$z]['name'] = 'salt';
- $apps[$x]['db'][$y]['fields'][$z]['type'] = 'text';
- $apps[$x]['db'][$y]['fields'][$z]['description'] = '';
- $z++;
- $apps[$x]['db'][$y]['fields'][$z]['name'] = 'user_type';
- $apps[$x]['db'][$y]['fields'][$z]['type'] = 'text';
- $apps[$x]['db'][$y]['fields'][$z]['description'] = '';
- $z++;
- $apps[$x]['db'][$y]['fields'][$z]['name'] = 'user_category';
- $apps[$x]['db'][$y]['fields'][$z]['type'] = 'text';
- $apps[$x]['db'][$y]['fields'][$z]['description'] = '';
- $z++;
- $apps[$x]['db'][$y]['fields'][$z]['name'] = 'user_first_name';
- $apps[$x]['db'][$y]['fields'][$z]['type'] = 'text';
- $apps[$x]['db'][$y]['fields'][$z]['description'] = '';
- $z++;
- $apps[$x]['db'][$y]['fields'][$z]['name'] = 'user_last_name';
- $apps[$x]['db'][$y]['fields'][$z]['type'] = 'text';
- $apps[$x]['db'][$y]['fields'][$z]['description'] = '';
- $z++;
- $apps[$x]['db'][$y]['fields'][$z]['name'] = 'user_company_name';
- $apps[$x]['db'][$y]['fields'][$z]['type'] = 'text';
- $apps[$x]['db'][$y]['fields'][$z]['description'] = '';
- $z++;
- $apps[$x]['db'][$y]['fields'][$z]['name'] = 'user_physical_address_1';
- $apps[$x]['db'][$y]['fields'][$z]['type'] = 'text';
- $apps[$x]['db'][$y]['fields'][$z]['description'] = '';
- $z++;
- $apps[$x]['db'][$y]['fields'][$z]['name'] = 'user_physical_address_2';
- $apps[$x]['db'][$y]['fields'][$z]['type'] = 'text';
- $apps[$x]['db'][$y]['fields'][$z]['description'] = '';
- $z++;
- $apps[$x]['db'][$y]['fields'][$z]['name'] = 'user_physical_city';
- $apps[$x]['db'][$y]['fields'][$z]['type'] = 'text';
- $apps[$x]['db'][$y]['fields'][$z]['description'] = '';
- $z++;
- $apps[$x]['db'][$y]['fields'][$z]['name'] = 'user_physical_state_province';
- $apps[$x]['db'][$y]['fields'][$z]['type'] = 'text';
- $apps[$x]['db'][$y]['fields'][$z]['description'] = '';
- $z++;
- $apps[$x]['db'][$y]['fields'][$z]['name'] = 'user_physical_country';
- $apps[$x]['db'][$y]['fields'][$z]['type'] = 'text';
- $apps[$x]['db'][$y]['fields'][$z]['description'] = '';
- $z++;
- $apps[$x]['db'][$y]['fields'][$z]['name'] = 'user_physical_postal_code';
- $apps[$x]['db'][$y]['fields'][$z]['type'] = 'text';
- $apps[$x]['db'][$y]['fields'][$z]['description'] = '';
- $z++;
- $apps[$x]['db'][$y]['fields'][$z]['name'] = 'user_mailing_address_1';
- $apps[$x]['db'][$y]['fields'][$z]['type'] = 'text';
- $apps[$x]['db'][$y]['fields'][$z]['description'] = '';
- $z++;
- $apps[$x]['db'][$y]['fields'][$z]['name'] = 'user_mailing_address_2';
- $apps[$x]['db'][$y]['fields'][$z]['type'] = 'text';
- $apps[$x]['db'][$y]['fields'][$z]['description'] = '';
- $z++;
- $apps[$x]['db'][$y]['fields'][$z]['name'] = 'user_mailing_city';
- $apps[$x]['db'][$y]['fields'][$z]['type'] = 'text';
- $apps[$x]['db'][$y]['fields'][$z]['description'] = '';
- $z++;
- $apps[$x]['db'][$y]['fields'][$z]['name'] = 'user_mailing_state_province';
- $apps[$x]['db'][$y]['fields'][$z]['type'] = 'text';
- $apps[$x]['db'][$y]['fields'][$z]['description'] = '';
- $z++;
- $apps[$x]['db'][$y]['fields'][$z]['name'] = 'user_mailing_country';
- $apps[$x]['db'][$y]['fields'][$z]['type'] = 'text';
- $apps[$x]['db'][$y]['fields'][$z]['description'] = '';
- $z++;
- $apps[$x]['db'][$y]['fields'][$z]['name'] = 'user_mailing_postal_code';
- $apps[$x]['db'][$y]['fields'][$z]['type'] = 'text';
- $apps[$x]['db'][$y]['fields'][$z]['description'] = '';
- $z++;
- $apps[$x]['db'][$y]['fields'][$z]['name'] = 'user_billing_address_1';
- $apps[$x]['db'][$y]['fields'][$z]['type'] = 'text';
- $apps[$x]['db'][$y]['fields'][$z]['description'] = '';
- $z++;
- $apps[$x]['db'][$y]['fields'][$z]['name'] = 'user_billing_address_2';
- $apps[$x]['db'][$y]['fields'][$z]['type'] = 'text';
- $apps[$x]['db'][$y]['fields'][$z]['description'] = '';
- $z++;
- $apps[$x]['db'][$y]['fields'][$z]['name'] = 'user_billing_city';
- $apps[$x]['db'][$y]['fields'][$z]['type'] = 'text';
- $apps[$x]['db'][$y]['fields'][$z]['description'] = '';
- $z++;
- $apps[$x]['db'][$y]['fields'][$z]['name'] = 'user_billing_state_province';
- $apps[$x]['db'][$y]['fields'][$z]['type'] = 'text';
- $apps[$x]['db'][$y]['fields'][$z]['description'] = '';
- $z++;
- $apps[$x]['db'][$y]['fields'][$z]['name'] = 'user_billing_country';
- $apps[$x]['db'][$y]['fields'][$z]['type'] = 'text';
- $apps[$x]['db'][$y]['fields'][$z]['description'] = '';
- $z++;
- $apps[$x]['db'][$y]['fields'][$z]['name'] = 'user_billing_postal_code';
- $apps[$x]['db'][$y]['fields'][$z]['type'] = 'text';
- $apps[$x]['db'][$y]['fields'][$z]['description'] = '';
- $z++;
- $apps[$x]['db'][$y]['fields'][$z]['name'] = 'user_shipping_address_1';
- $apps[$x]['db'][$y]['fields'][$z]['type'] = 'text';
- $apps[$x]['db'][$y]['fields'][$z]['description'] = '';
- $z++;
- $apps[$x]['db'][$y]['fields'][$z]['name'] = 'user_shipping_address_2';
- $apps[$x]['db'][$y]['fields'][$z]['type'] = 'text';
- $apps[$x]['db'][$y]['fields'][$z]['description'] = '';
- $z++;
- $apps[$x]['db'][$y]['fields'][$z]['name'] = 'user_shipping_city';
- $apps[$x]['db'][$y]['fields'][$z]['type'] = 'text';
- $apps[$x]['db'][$y]['fields'][$z]['description'] = '';
- $z++;
- $apps[$x]['db'][$y]['fields'][$z]['name'] = 'user_shipping_state_province';
- $apps[$x]['db'][$y]['fields'][$z]['type'] = 'text';
- $apps[$x]['db'][$y]['fields'][$z]['description'] = '';
- $z++;
- $apps[$x]['db'][$y]['fields'][$z]['name'] = 'user_shipping_country';
- $apps[$x]['db'][$y]['fields'][$z]['type'] = 'text';
- $apps[$x]['db'][$y]['fields'][$z]['description'] = '';
- $z++;
- $apps[$x]['db'][$y]['fields'][$z]['name'] = 'user_shipping_postal_code';
- $apps[$x]['db'][$y]['fields'][$z]['type'] = 'text';
- $apps[$x]['db'][$y]['fields'][$z]['description'] = '';
- $z++;
- $apps[$x]['db'][$y]['fields'][$z]['name'] = 'user_url';
- $apps[$x]['db'][$y]['fields'][$z]['type'] = 'text';
- $apps[$x]['db'][$y]['fields'][$z]['description'] = '';
- $z++;
- $apps[$x]['db'][$y]['fields'][$z]['name'] = 'user_phone_1';
- $apps[$x]['db'][$y]['fields'][$z]['type'] = 'text';
- $apps[$x]['db'][$y]['fields'][$z]['description'] = '';
- $z++;
- $apps[$x]['db'][$y]['fields'][$z]['name'] = 'user_phone_1_ext';
- $apps[$x]['db'][$y]['fields'][$z]['type'] = 'text';
- $apps[$x]['db'][$y]['fields'][$z]['description'] = '';
- $z++;
- $apps[$x]['db'][$y]['fields'][$z]['name'] = 'user_phone_2';
- $apps[$x]['db'][$y]['fields'][$z]['type'] = 'text';
- $apps[$x]['db'][$y]['fields'][$z]['description'] = '';
- $z++;
- $apps[$x]['db'][$y]['fields'][$z]['name'] = 'user_phone_2_ext';
- $apps[$x]['db'][$y]['fields'][$z]['type'] = 'text';
- $apps[$x]['db'][$y]['fields'][$z]['description'] = '';
- $z++;
- $apps[$x]['db'][$y]['fields'][$z]['name'] = 'user_phone_mobile';
- $apps[$x]['db'][$y]['fields'][$z]['type'] = 'text';
- $apps[$x]['db'][$y]['fields'][$z]['description'] = '';
- $z++;
- $apps[$x]['db'][$y]['fields'][$z]['name'] = 'user_phone_emergency_mobile';
- $apps[$x]['db'][$y]['fields'][$z]['type'] = 'text';
- $apps[$x]['db'][$y]['fields'][$z]['description'] = '';
- $z++;
- $apps[$x]['db'][$y]['fields'][$z]['name'] = 'user_email_emergency';
- $apps[$x]['db'][$y]['fields'][$z]['type'] = 'text';
- $apps[$x]['db'][$y]['fields'][$z]['description'] = '';
- $z++;
- $apps[$x]['db'][$y]['fields'][$z]['name'] = 'user_phone_fax';
- $apps[$x]['db'][$y]['fields'][$z]['type'] = 'text';
- $apps[$x]['db'][$y]['fields'][$z]['description'] = '';
- $z++;
- $apps[$x]['db'][$y]['fields'][$z]['name'] = 'user_template_name';
- $apps[$x]['db'][$y]['fields'][$z]['type'] = 'text';
- $apps[$x]['db'][$y]['fields'][$z]['description'] = '';
- $z++;
- $apps[$x]['db'][$y]['fields'][$z]['name'] = 'user_email';
- $apps[$x]['db'][$y]['fields'][$z]['type'] = 'text';
- $apps[$x]['db'][$y]['fields'][$z]['description'] = '';
- $z++;
- $apps[$x]['db'][$y]['fields'][$z]['name'] = 'user_notes';
- $apps[$x]['db'][$y]['fields'][$z]['type'] = 'text';
- $apps[$x]['db'][$y]['fields'][$z]['description'] = '';
- $z++;
- $apps[$x]['db'][$y]['fields'][$z]['name'] = 'user_optional_1';
- $apps[$x]['db'][$y]['fields'][$z]['type'] = 'text';
- $apps[$x]['db'][$y]['fields'][$z]['description'] = '';
- $z++;
- $apps[$x]['db'][$y]['fields'][$z]['name'] = 'user_optional_2';
- $apps[$x]['db'][$y]['fields'][$z]['type'] = 'text';
- $apps[$x]['db'][$y]['fields'][$z]['description'] = '';
- $z++;
- $apps[$x]['db'][$y]['fields'][$z]['name'] = 'user_status';
- $apps[$x]['db'][$y]['fields'][$z]['type'] = 'text';
- $apps[$x]['db'][$y]['fields'][$z]['description'] = '';
- $z++;
- $apps[$x]['db'][$y]['fields'][$z]['name'] = 'user_time_zone';
- $apps[$x]['db'][$y]['fields'][$z]['type'] = 'text';
- $apps[$x]['db'][$y]['fields'][$z]['description'] = '';
- $z++;
- $apps[$x]['db'][$y]['fields'][$z]['name'] = 'user_add_user';
- $apps[$x]['db'][$y]['fields'][$z]['type'] = 'text';
- $apps[$x]['db'][$y]['fields'][$z]['description'] = '';
- $z++;
- $apps[$x]['db'][$y]['fields'][$z]['name'] = 'user_add_date';
- $apps[$x]['db'][$y]['fields'][$z]['type'] = 'text';
- $apps[$x]['db'][$y]['fields'][$z]['description'] = '';
- $z++;
- $apps[$x]['db'][$y]['fields'][$z]['name'] = 'customer_id';
- $apps[$x]['db'][$y]['fields'][$z]['type'] = 'numeric';
- $apps[$x]['db'][$y]['fields'][$z]['description'] = '';
- ?>
|