Find this useful? Enter your email to receive occasional updates for securing PHP code.
Signing you up...
Thank you for signing up!
PHP Decode
<?php namespace App\Domains\Settings\CreateAccount\Jobs; use App\Domains\Settings\ManageA..
Decoded Output download
<?php
namespace App\Domains\Settings\CreateAccount\Jobs; use App\Domains\Settings\ManageAddressTypes\Services\CreateAddressType; use App\Domains\Settings\ManageCallReasons\Services\CreateCallReason; use App\Domains\Settings\ManageCallReasons\Services\CreateCallReasonType; use App\Domains\Settings\ManageContactInformationTypes\Services\CreateContactInformationType; use App\Domains\Settings\ManageGenders\Services\CreateGender; use App\Domains\Settings\ManageGroupTypes\Services\CreateGroupType; use App\Domains\Settings\ManageGroupTypes\Services\CreateGroupTypeRole; use App\Domains\Settings\ManageNotificationChannels\Services\CreateUserNotificationChannel; use App\Domains\Settings\ManagePetCategories\Services\CreatePetCategory; use App\Domains\Settings\ManagePostTemplates\Services\CreatePostTemplate; use App\Domains\Settings\ManagePostTemplates\Services\CreatePostTemplateSection; use App\Domains\Settings\ManagePronouns\Services\CreatePronoun; use App\Domains\Settings\ManageRelationshipTypes\Services\CreateRelationshipGroupType; use App\Domains\Settings\ManageTemplates\Services\AssociateModuleToTemplatePage; use App\Domains\Settings\ManageTemplates\Services\CreateModule; use App\Domains\Settings\ManageTemplates\Services\CreateTemplate; use App\Domains\Settings\ManageTemplates\Services\CreateTemplatePage; use App\Interfaces\ServiceInterface; use App\Models\Currency; use App\Models\Emotion; use App\Models\Module; use App\Models\RelationshipGroupType; use App\Models\RelationshipType; use App\Models\Template; use App\Models\TemplatePage; use App\Models\UserNotificationChannel; use App\Services\QueuableService; use Carbon\Carbon; use Illuminate\Support\Facades\DB; class SetupAccount extends QueuableService implements ServiceInterface { protected $template; public function rules() : array { return array("account_id" => "required|uuid|exists:accounts,id", "author_id" => "required|uuid|exists:users,id"); } public function permissions() : array { return array("author_must_belong_to_account"); } public function execute(array $data) : void { $this->validateRules($data); $this->populateCurrencies(); $this->addNotificationChannel(); $this->addTemplate(); $this->addTemplatePageContactInformation(); $this->addTemplatePageFeed(); $this->addTemplatePageContact(); $this->addTemplatePageSocial(); $this->addTemplatePageLifeEvents(); $this->addTemplatePageInformation(); $this->addFirstInformation(); } private function populateCurrencies() : void { $currencies = Currency::get(); foreach ($currencies as $currency) { $this->account()->currencies()->attach($currency->id); } } private function addNotificationChannel() : void { $channel = (new CreateUserNotificationChannel())->execute(array("account_id" => $this->author->account_id, "author_id" => $this->author->id, "label" => "Email address", "type" => UserNotificationChannel::TYPE_EMAIL, "content" => $this->author->email, "verify_email" => false, "preferred_time" => "09:00")); $channel->verified_at = Carbon::now(); $channel->active = true; $channel->save(); } private function addTemplate() : void { $request = array("account_id" => $this->author->account_id, "author_id" => $this->author->id, "name" => null, "name_translation_key" => trans_key("Default template"), "can_be_deleted" => false); $this->template = (new CreateTemplate())->execute($request); } private function addTemplatePageContactInformation() : void { $templatePageContact = $this->template->pages()->firstWhere("type", TemplatePage::TYPE_CONTACT); $module = (new CreateModule())->execute(array("account_id" => $this->author->account_id, "author_id" => $this->author->id, "name_translation_key" => trans_key("Avatar"), "type" => Module::TYPE_AVATAR, "can_be_deleted" => false, "reserved_to_contact_information" => true)); (new AssociateModuleToTemplatePage())->execute(array("account_id" => $this->author->account_id, "author_id" => $this->author->id, "template_id" => $this->template->id, "template_page_id" => $templatePageContact->id, "module_id" => $module->id)); $module = (new CreateModule())->execute(array("account_id" => $this->author->account_id, "author_id" => $this->author->id, "name_translation_key" => trans_key("Contact name"), "type" => Module::TYPE_CONTACT_NAMES, "can_be_deleted" => false, "reserved_to_contact_information" => true)); (new AssociateModuleToTemplatePage())->execute(array("account_id" => $this->author->account_id, "author_id" => $this->author->id, "template_id" => $this->template->id, "template_page_id" => $templatePageContact->id, "module_id" => $module->id)); $module = (new CreateModule())->execute(array("account_id" => $this->author->account_id, "author_id" => $this->author->id, "name_translation_key" => trans_key("Family summary"), "type" => Module::TYPE_FAMILY_SUMMARY, "can_be_deleted" => false, "reserved_to_contact_information" => true)); (new AssociateModuleToTemplatePage())->execute(array("account_id" => $this->author->account_id, "author_id" => $this->author->id, "template_id" => $this->template->id, "template_page_id" => $templatePageContact->id, "module_id" => $module->id)); $module = (new CreateModule())->execute(array("account_id" => $this->author->account_id, "author_id" => $this->author->id, "name_translation_key" => trans_key("Important dates"), "type" => Module::TYPE_IMPORTANT_DATES, "can_be_deleted" => false, "reserved_to_contact_information" => true)); (new AssociateModuleToTemplatePage())->execute(array("account_id" => $this->author->account_id, "author_id" => $this->author->id, "template_id" => $this->template->id, "template_page_id" => $templatePageContact->id, "module_id" => $module->id)); $module = (new CreateModule())->execute(array("account_id" => $this->author->account_id, "author_id" => $this->author->id, "name_translation_key" => trans_key("Gender and pronoun"), "type" => Module::TYPE_GENDER_PRONOUN, "can_be_deleted" => false, "reserved_to_contact_information" => true)); (new AssociateModuleToTemplatePage())->execute(array("account_id" => $this->author->account_id, "author_id" => $this->author->id, "template_id" => $this->template->id, "template_page_id" => $templatePageContact->id, "module_id" => $module->id)); $module = (new CreateModule())->execute(array("account_id" => $this->author->account_id, "author_id" => $this->author->id, "name_translation_key" => trans_key("Labels"), "type" => Module::TYPE_LABELS, "can_be_deleted" => false, "reserved_to_contact_information" => true)); (new AssociateModuleToTemplatePage())->execute(array("account_id" => $this->author->account_id, "author_id" => $this->author->id, "template_id" => $this->template->id, "template_page_id" => $templatePageContact->id, "module_id" => $module->id)); $module = (new CreateModule())->execute(array("account_id" => $this->author->account_id, "author_id" => $this->author->id, "name_translation_key" => trans_key("Job information"), "type" => Module::TYPE_COMPANY, "can_be_deleted" => false, "reserved_to_contact_information" => true)); (new AssociateModuleToTemplatePage())->execute(array("account_id" => $this->author->account_id, "author_id" => $this->author->id, "template_id" => $this->template->id, "template_page_id" => $templatePageContact->id, "module_id" => $module->id)); $module = (new CreateModule())->execute(array("account_id" => $this->author->account_id, "author_id" => $this->author->id, "name_translation_key" => trans_key("Religions"), "type" => Module::TYPE_RELIGIONS, "can_be_deleted" => false, "reserved_to_contact_information" => true)); (new AssociateModuleToTemplatePage())->execute(array("account_id" => $this->author->account_id, "author_id" => $this->author->id, "template_id" => $this->template->id, "template_page_id" => $templatePageContact->id, "module_id" => $module->id)); } private function addTemplatePageFeed() : void { $templatePageFeed = (new CreateTemplatePage())->execute(array("account_id" => $this->author->account_id, "author_id" => $this->author->id, "template_id" => $this->template->id, "name_translation_key" => trans_key("Activity feed"), "can_be_deleted" => true)); $module = (new CreateModule())->execute(array("account_id" => $this->author->account_id, "author_id" => $this->author->id, "name_translation_key" => trans_key("Contact feed"), "type" => Module::TYPE_FEED, "can_be_deleted" => false)); (new AssociateModuleToTemplatePage())->execute(array("account_id" => $this->author->account_id, "author_id" => $this->author->id, "template_id" => $this->template->id, "template_page_id" => $templatePageFeed->id, "module_id" => $module->id)); } private function addTemplatePageContact() : void { $template = (new CreateTemplatePage())->execute(array("account_id" => $this->author->account_id, "author_id" => $this->author->id, "template_id" => $this->template->id, "name_translation_key" => trans_key("Ways to connect"), "can_be_deleted" => true)); $module = (new CreateModule())->execute(array("account_id" => $this->author->account_id, "author_id" => $this->author->id, "name_translation_key" => trans_key("Addresses"), "type" => Module::TYPE_ADDRESSES, "can_be_deleted" => false)); (new AssociateModuleToTemplatePage())->execute(array("account_id" => $this->author->account_id, "author_id" => $this->author->id, "template_id" => $this->template->id, "template_page_id" => $template->id, "module_id" => $module->id)); $module = (new CreateModule())->execute(array("account_id" => $this->author->account_id, "author_id" => $this->author->id, "name_translation_key" => trans_key("Contact information"), "type" => Module::TYPE_CONTACT_INFORMATION, "can_be_deleted" => false)); (new AssociateModuleToTemplatePage())->execute(array("account_id" => $this->author->account_id, "author_id" => $this->author->id, "template_id" => $this->template->id, "template_page_id" => $template->id, "module_id" => $module->id)); } private function addTemplatePageSocial() : void { $templatePageSocial = (new CreateTemplatePage())->execute(array("account_id" => $this->author->account_id, "author_id" => $this->author->id, "template_id" => $this->template->id, "name_translation_key" => trans_key("Social"), "can_be_deleted" => true)); $module = (new CreateModule())->execute(array("account_id" => $this->author->account_id, "author_id" => $this->author->id, "name_translation_key" => trans_key("Relationships"), "type" => Module::TYPE_RELATIONSHIPS, "can_be_deleted" => false)); (new AssociateModuleToTemplatePage())->execute(array("account_id" => $this->author->account_id, "author_id" => $this->author->id, "template_id" => $this->template->id, "template_page_id" => $templatePageSocial->id, "module_id" => $module->id)); $module = (new CreateModule())->execute(array("account_id" => $this->author->account_id, "author_id" => $this->author->id, "name_translation_key" => trans_key("Pets"), "type" => Module::TYPE_PETS, "can_be_deleted" => false)); (new AssociateModuleToTemplatePage())->execute(array("account_id" => $this->author->account_id, "author_id" => $this->author->id, "template_id" => $this->template->id, "template_page_id" => $templatePageSocial->id, "module_id" => $module->id)); $module = (new CreateModule())->execute(array("account_id" => $this->author->account_id, "author_id" => $this->author->id, "name_translation_key" => trans_key("Groups"), "type" => Module::TYPE_GROUPS, "can_be_deleted" => false)); (new AssociateModuleToTemplatePage())->execute(array("account_id" => $this->author->account_id, "author_id" => $this->author->id, "template_id" => $this->template->id, "template_page_id" => $templatePageSocial->id, "module_id" => $module->id)); } private function addTemplatePageLifeEvents() : void { $templatePageSocial = (new CreateTemplatePage())->execute(array("account_id" => $this->author->account_id, "author_id" => $this->author->id, "template_id" => $this->template->id, "name_translation_key" => trans_key("Life & goals"), "can_be_deleted" => true)); $module = (new CreateModule())->execute(array("account_id" => $this->author->account_id, "author_id" => $this->author->id, "name_translation_key" => trans_key("Life"), "type" => Module::TYPE_LIFE_EVENTS, "can_be_deleted" => false)); (new AssociateModuleToTemplatePage())->execute(array("account_id" => $this->author->account_id, "author_id" => $this->author->id, "template_id" => $this->template->id, "template_page_id" => $templatePageSocial->id, "module_id" => $module->id)); $module = (new CreateModule())->execute(array("account_id" => $this->author->account_id, "author_id" => $this->author->id, "name_translation_key" => trans_key("Goals"), "type" => Module::TYPE_GOALS, "can_be_deleted" => false)); (new AssociateModuleToTemplatePage())->execute(array("account_id" => $this->author->account_id, "author_id" => $this->author->id, "template_id" => $this->template->id, "template_page_id" => $templatePageSocial->id, "module_id" => $module->id)); } private function addTemplatePageInformation() : void { $templatePageInformation = (new CreateTemplatePage())->execute(array("account_id" => $this->author->account_id, "author_id" => $this->author->id, "template_id" => $this->template->id, "name_translation_key" => trans_key("Information"), "can_be_deleted" => true)); $module = (new CreateModule())->execute(array("account_id" => $this->author->account_id, "author_id" => $this->author->id, "name_translation_key" => trans_key("Documents"), "type" => Module::TYPE_DOCUMENTS, "can_be_deleted" => false)); (new AssociateModuleToTemplatePage())->execute(array("account_id" => $this->author->account_id, "author_id" => $this->author->id, "template_id" => $this->template->id, "template_page_id" => $templatePageInformation->id, "module_id" => $module->id)); $module = (new CreateModule())->execute(array("account_id" => $this->author->account_id, "author_id" => $this->author->id, "name_translation_key" => trans_key("Photos"), "type" => Module::TYPE_PHOTOS, "can_be_deleted" => false)); (new AssociateModuleToTemplatePage())->execute(array("account_id" => $this->author->account_id, "author_id" => $this->author->id, "template_id" => $this->template->id, "template_page_id" => $templatePageInformation->id, "module_id" => $module->id)); $module = (new CreateModule())->execute(array("account_id" => $this->author->account_id, "author_id" => $this->author->id, "name_translation_key" => trans_key("Notes"), "type" => Module::TYPE_NOTES, "can_be_deleted" => false, "pagination" => 3)); (new AssociateModuleToTemplatePage())->execute(array("account_id" => $this->author->account_id, "author_id" => $this->author->id, "template_id" => $this->template->id, "template_page_id" => $templatePageInformation->id, "module_id" => $module->id)); $module = (new CreateModule())->execute(array("account_id" => $this->author->account_id, "author_id" => $this->author->id, "name_translation_key" => trans_key("Reminders"), "type" => Module::TYPE_REMINDERS, "can_be_deleted" => false)); (new AssociateModuleToTemplatePage())->execute(array("account_id" => $this->author->account_id, "author_id" => $this->author->id, "template_id" => $this->template->id, "template_page_id" => $templatePageInformation->id, "module_id" => $module->id)); $module = (new CreateModule())->execute(array("account_id" => $this->author->account_id, "author_id" => $this->author->id, "name_translation_key" => trans_key("Loans"), "type" => Module::TYPE_LOANS, "can_be_deleted" => false)); (new AssociateModuleToTemplatePage())->execute(array("account_id" => $this->author->account_id, "author_id" => $this->author->id, "template_id" => $this->template->id, "template_page_id" => $templatePageInformation->id, "module_id" => $module->id)); $module = (new CreateModule())->execute(array("account_id" => $this->author->account_id, "author_id" => $this->author->id, "name_translation_key" => trans_key("Tasks"), "type" => Module::TYPE_TASKS, "can_be_deleted" => false)); (new AssociateModuleToTemplatePage())->execute(array("account_id" => $this->author->account_id, "author_id" => $this->author->id, "template_id" => $this->template->id, "template_page_id" => $templatePageInformation->id, "module_id" => $module->id)); $module = (new CreateModule())->execute(array("account_id" => $this->author->account_id, "author_id" => $this->author->id, "name_translation_key" => trans_key("Calls"), "type" => Module::TYPE_CALLS, "can_be_deleted" => false)); (new AssociateModuleToTemplatePage())->execute(array("account_id" => $this->author->account_id, "author_id" => $this->author->id, "template_id" => $this->template->id, "template_page_id" => $templatePageInformation->id, "module_id" => $module->id)); $module = (new CreateModule())->execute(array("account_id" => $this->author->account_id, "author_id" => $this->author->id, "name_translation_key" => trans_key("Posts"), "type" => Module::TYPE_POSTS, "can_be_deleted" => false)); (new AssociateModuleToTemplatePage())->execute(array("account_id" => $this->author->account_id, "author_id" => $this->author->id, "template_id" => $this->template->id, "template_page_id" => $templatePageInformation->id, "module_id" => $module->id)); } private function addFirstInformation() : void { $this->addGenders(); $this->addPronouns(); $this->addGroupTypes(); $this->addRelationshipTypes(); $this->addAddressTypes(); $this->addCallReasonTypes(); $this->addContactInformation(); $this->addPetCategories(); $this->addEmotions(); $this->addGiftOccasions(); $this->addGiftStates(); $this->addPostTemplates(); $this->addReligions(); } private function addGenders() : void { $types = collect(array(trans_key("Male"), trans_key("Female"), trans_key("Other"))); foreach ($types as $type) { $request = array("account_id" => $this->author->account_id, "author_id" => $this->author->id, "name_translation_key" => $type); (new CreateGender())->execute($request); } } private function addPronouns() : void { $pronouns = collect(array(trans_key("he/him"), trans_key("she/her"), trans_key("they/them"), trans_key("per/per"), trans_key("ve/ver"), trans_key("xe/xem"), trans_key("ze/hir"))); foreach ($pronouns as $pronoun) { $request = array("account_id" => $this->author->account_id, "author_id" => $this->author->id, "name_translation_key" => $pronoun); (new CreatePronoun())->execute($request); } } private function addGroupTypes() : void { $groupType = (new CreateGroupType())->execute(array("account_id" => $this->author->account_id, "author_id" => $this->author->id, "label_translation_key" => trans_key("Family"))); (new CreateGroupTypeRole())->execute(array("account_id" => $this->author->account_id, "author_id" => $this->author->id, "group_type_id" => $groupType->id, "label_translation_key" => trans_key("Parent"))); (new CreateGroupTypeRole())->execute(array("account_id" => $this->author->account_id, "author_id" => $this->author->id, "group_type_id" => $groupType->id, "label_translation_key" => trans_key("Child"))); $groupType = (new CreateGroupType())->execute(array("account_id" => $this->author->account_id, "author_id" => $this->author->id, "label_translation_key" => trans_key("Couple"))); (new CreateGroupTypeRole())->execute(array("account_id" => $this->author->account_id, "author_id" => $this->author->id, "group_type_id" => $groupType->id, "label_translation_key" => trans_key("Partner"))); $groupType = (new CreateGroupType())->execute(array("account_id" => $this->author->account_id, "author_id" => $this->author->id, "label_translation_key" => trans_key("Club"))); $groupType = (new CreateGroupType())->execute(array("account_id" => $this->author->account_id, "author_id" => $this->author->id, "label_translation_key" => trans_key("Association"))); $groupType = (new CreateGroupType())->execute(array("account_id" => $this->author->account_id, "author_id" => $this->author->id, "label_translation_key" => trans_key("Roomates"))); } private function addRelationshipTypes() : void { $group = (new CreateRelationshipGroupType())->execute(array("account_id" => $this->author->account_id, "author_id" => $this->author->id, "name_translation_key" => trans_key("Love"), "can_be_deleted" => false, "type" => RelationshipGroupType::TYPE_LOVE)); DB::table("relationship_types")->insert(array(array("name_translation_key" => trans_key("significant other"), "name_reverse_relationship_translation_key" => trans_key("significant other"), "relationship_group_type_id" => $group->id, "can_be_deleted" => false, "type" => RelationshipType::TYPE_LOVE), array("name_translation_key" => trans_key("spouse"), "name_reverse_relationship_translation_key" => trans_key("spouse"), "relationship_group_type_id" => $group->id, "can_be_deleted" => false, "type" => RelationshipType::TYPE_LOVE), array("name_translation_key" => trans_key("date"), "name_reverse_relationship_translation_key" => trans_key("date"), "relationship_group_type_id" => $group->id, "can_be_deleted" => true, "type" => null), array("name_translation_key" => trans_key("lover"), "name_reverse_relationship_translation_key" => trans_key("lover"), "relationship_group_type_id" => $group->id, "can_be_deleted" => true, "type" => null), array("name_translation_key" => trans_key("in love with"), "name_reverse_relationship_translation_key" => trans_key("loved by"), "relationship_group_type_id" => $group->id, "can_be_deleted" => true, "type" => null), array("name_translation_key" => trans_key("ex-boyfriend"), "name_reverse_relationship_translation_key" => trans_key("ex-boyfriend"), "relationship_group_type_id" => $group->id, "can_be_deleted" => true, "type" => null))); $group = (new CreateRelationshipGroupType())->execute(array("account_id" => $this->author->account_id, "author_id" => $this->author->id, "name_translation_key" => trans_key("Family"), "can_be_deleted" => false, "type" => RelationshipGroupType::TYPE_FAMILY)); DB::table("relationship_types")->insert(array(array("name_translation_key" => trans_key("parent"), "name_reverse_relationship_translation_key" => trans_key("child"), "relationship_group_type_id" => $group->id, "can_be_deleted" => false, "type" => RelationshipType::TYPE_CHILD), array("name_translation_key" => trans_key("brother/sister"), "name_reverse_relationship_translation_key" => trans_key("brother/sister"), "relationship_group_type_id" => $group->id, "can_be_deleted" => true, "type" => null), array("name_translation_key" => trans_key("grand parent"), "name_reverse_relationship_translation_key" => trans_key("grand child"), "relationship_group_type_id" => $group->id, "can_be_deleted" => true, "type" => null), array("name_translation_key" => trans_key("uncle/aunt"), "name_reverse_relationship_translation_key" => trans_key("nephew/niece"), "relationship_group_type_id" => $group->id, "can_be_deleted" => true, "type" => null), array("name_translation_key" => trans_key("cousin"), "name_reverse_relationship_translation_key" => trans_key("cousin"), "relationship_group_type_id" => $group->id, "can_be_deleted" => true, "type" => null), array("name_translation_key" => trans_key("godparent"), "name_reverse_relationship_translation_key" => trans_key("godchild"), "relationship_group_type_id" => $group->id, "can_be_deleted" => true, "type" => null))); $group = (new CreateRelationshipGroupType())->execute(array("account_id" => $this->author->account_id, "author_id" => $this->author->id, "name_translation_key" => trans_key("Friend"), "can_be_deleted" => true)); DB::table("relationship_types")->insert(array(array("name_translation_key" => trans_key("friend"), "name_reverse_relationship_translation_key" => trans_key("friend"), "relationship_group_type_id" => $group->id, "can_be_deleted" => true, "type" => null), array("name_translation_key" => trans_key("best friend"), "name_reverse_relationship_translation_key" => trans_key("best friend"), "relationship_group_type_id" => $group->id, "can_be_deleted" => true, "type" => null))); $group = (new CreateRelationshipGroupType())->execute(array("account_id" => $this->author->account_id, "author_id" => $this->author->id, "name_translation_key" => trans_key("Work"), "can_be_deleted" => true)); DB::table("relationship_types")->insert(array(array("name_translation_key" => trans_key("colleague"), "name_reverse_relationship_translation_key" => trans_key("colleague"), "relationship_group_type_id" => $group->id, "can_be_deleted" => true, "type" => null), array("name_translation_key" => trans_key("subordinate"), "name_reverse_relationship_translation_key" => trans_key("boss"), "relationship_group_type_id" => $group->id, "can_be_deleted" => true, "type" => null), array("name_translation_key" => trans_key("mentor"), "name_reverse_relationship_translation_key" => trans_key("protege"), "relationship_group_type_id" => $group->id, "can_be_deleted" => true, "type" => null))); } private function addAddressTypes() : void { $addresses = collect(array(trans_key("\xf0\237\x8f\241 Home"), trans_key("\xf0\237\x8f\240 Secondary residence"), trans_key("\360\x9f\x8f\242 Work"), trans_key("\xf0\237\214\263 Chalet"))); foreach ($addresses as $address) { (new CreateAddressType())->execute(array("account_id" => $this->author->account_id, "author_id" => $this->author->id, "name_translation_key" => $address)); } } private function addCallReasonTypes() : void { $type = (new CreateCallReasonType())->execute(array("account_id" => $this->author->account_id, "author_id" => $this->author->id, "label_translation_key" => trans_key("Personal"))); (new CreateCallReason())->execute(array("account_id" => $this->author->account_id, "author_id" => $this->author->id, "call_reason_type_id" => $type->id, "label_translation_key" => trans_key("For advice"))); (new CreateCallReason())->execute(array("account_id" => $this->author->account_id, "author_id" => $this->author->id, "call_reason_type_id" => $type->id, "label_translation_key" => trans_key("Just to say hello"))); (new CreateCallReason())->execute(array("account_id" => $this->author->account_id, "author_id" => $this->author->id, "call_reason_type_id" => $type->id, "label_translation_key" => trans_key("To see if they need anything"))); (new CreateCallReason())->execute(array("account_id" => $this->author->account_id, "author_id" => $this->author->id, "call_reason_type_id" => $type->id, "label_translation_key" => trans_key("Out of respect and appreciation"))); (new CreateCallReason())->execute(array("account_id" => $this->author->account_id, "author_id" => $this->author->id, "call_reason_type_id" => $type->id, "label_translation_key" => trans_key("To hear their story"))); $type = (new CreateCallReasonType())->execute(array("account_id" => $this->author->account_id, "author_id" => $this->author->id, "label_translation_key" => trans_key("Business"))); (new CreateCallReason())->execute(array("account_id" => $this->author->account_id, "author_id" => $this->author->id, "call_reason_type_id" => $type->id, "label_translation_key" => trans_key("Discuss recent purchases"))); (new CreateCallReason())->execute(array("account_id" => $this->author->account_id, "author_id" => $this->author->id, "call_reason_type_id" => $type->id, "label_translation_key" => trans_key("Discuss partnership"))); } private function addContactInformation() : void { $information = (new CreateContactInformationType())->execute(array("account_id" => $this->author->account_id, "author_id" => $this->author->id, "name_translation_key" => trans_key("Email address"), "protocol" => "mailto:")); $information->can_be_deleted = false; $information->type = "email"; $information->save(); $information = (new CreateContactInformationType())->execute(array("account_id" => $this->author->account_id, "author_id" => $this->author->id, "name_translation_key" => trans_key("Phone"), "protocol" => "tel:")); $information->can_be_deleted = false; $information->type = "phone"; $information->save(); (new CreateContactInformationType())->execute(array("account_id" => $this->author->account_id, "author_id" => $this->author->id, "name" => "Facebook")); (new CreateContactInformationType())->execute(array("account_id" => $this->author->account_id, "author_id" => $this->author->id, "name" => "Twitter")); (new CreateContactInformationType())->execute(array("account_id" => $this->author->account_id, "author_id" => $this->author->id, "name" => "Whatsapp")); (new CreateContactInformationType())->execute(array("account_id" => $this->author->account_id, "author_id" => $this->author->id, "name" => "Telegram")); (new CreateContactInformationType())->execute(array("account_id" => $this->author->account_id, "author_id" => $this->author->id, "name" => "Hangouts")); (new CreateContactInformationType())->execute(array("account_id" => $this->author->account_id, "author_id" => $this->author->id, "name" => "Linkedin")); (new CreateContactInformationType())->execute(array("account_id" => $this->author->account_id, "author_id" => $this->author->id, "name" => "Instagram")); } private function addPetCategories() : void { $categories = collect(array(trans_key("Dog"), trans_key("Cat"), trans_key("Bird"), trans_key("Fish"), trans_key("Small animal"), trans_key("Hamster"), trans_key("Horse"), trans_key("Rabbit"), trans_key("Rat"), trans_key("Reptile"))); foreach ($categories as $category) { (new CreatePetCategory())->execute(array("account_id" => $this->author->account_id, "author_id" => $this->author->id, "name_translation_key" => $category)); } } private function addEmotions() : void { DB::table("emotions")->insert(array(array("account_id" => $this->author->account_id, "name_translation_key" => trans_key("\360\237\x98\241 Negative"), "type" => Emotion::TYPE_NEGATIVE), array("account_id" => $this->author->account_id, "name_translation_key" => trans_key("\360\237\x98\xb6\342\200\x8d\360\x9f\214\xab\357\270\217 Neutral"), "type" => Emotion::TYPE_NEUTRAL), array("account_id" => $this->author->account_id, "name_translation_key" => trans_key("\360\x9f\x98\201 Positive"), "type" => Emotion::TYPE_POSITIVE))); } private function addGiftOccasions() : void { DB::table("gift_occasions")->insert(array(array("account_id" => $this->author->account_id, "label_translation_key" => trans_key("Birthday"), "position" => 1), array("account_id" => $this->author->account_id, "label_translation_key" => trans_key("Anniversary"), "position" => 2), array("account_id" => $this->author->account_id, "label_translation_key" => trans_key("Christmas"), "position" => 3), array("account_id" => $this->author->account_id, "label_translation_key" => trans_key("Just because"), "position" => 4), array("account_id" => $this->author->account_id, "label_translation_key" => trans_key("Wedding"), "position" => 5))); } private function addGiftStates() : void { DB::table("gift_states")->insert(array(array("account_id" => $this->author->account_id, "label_translation_key" => trans_key("Idea"), "position" => 1), array("account_id" => $this->author->account_id, "label_translation_key" => trans_key("Searched"), "position" => 2), array("account_id" => $this->author->account_id, "label_translation_key" => trans_key("Found"), "position" => 3), array("account_id" => $this->author->account_id, "label_translation_key" => trans_key("Bought"), "position" => 4), array("account_id" => $this->author->account_id, "label_translation_key" => trans_key("Offered"), "position" => 5))); } private function addPostTemplates() : void { $postTemplate = (new CreatePostTemplate())->execute(array("account_id" => $this->author->account_id, "author_id" => $this->author->id, "label_translation_key" => trans_key("Regular post"), "can_be_deleted" => false)); (new CreatePostTemplateSection())->execute(array("account_id" => $this->author->account_id, "author_id" => $this->author->id, "post_template_id" => $postTemplate->id, "label_translation_key" => trans_key("Content"), "can_be_deleted" => false)); $postTemplate = (new CreatePostTemplate())->execute(array("account_id" => $this->author->account_id, "author_id" => $this->author->id, "label_translation_key" => trans_key("Inspirational post"), "can_be_deleted" => true)); (new CreatePostTemplateSection())->execute(array("account_id" => $this->author->account_id, "author_id" => $this->author->id, "post_template_id" => $postTemplate->id, "label_translation_key" => trans_key("I am grateful for"), "can_be_deleted" => true)); (new CreatePostTemplateSection())->execute(array("account_id" => $this->author->account_id, "author_id" => $this->author->id, "post_template_id" => $postTemplate->id, "label_translation_key" => trans_key("Daily affirmation"), "can_be_deleted" => true)); (new CreatePostTemplateSection())->execute(array("account_id" => $this->author->account_id, "author_id" => $this->author->id, "post_template_id" => $postTemplate->id, "label_translation_key" => trans_key("How could I have done this day better?"), "can_be_deleted" => true)); (new CreatePostTemplateSection())->execute(array("account_id" => $this->author->account_id, "author_id" => $this->author->id, "post_template_id" => $postTemplate->id, "label_translation_key" => trans_key("What would make today great?"), "can_be_deleted" => true)); (new CreatePostTemplateSection())->execute(array("account_id" => $this->author->account_id, "author_id" => $this->author->id, "post_template_id" => $postTemplate->id, "label_translation_key" => trans_key("Three things that happened today"), "can_be_deleted" => true)); } private function addReligions() : void { DB::table("religions")->insert(array(array("account_id" => $this->author->account_id, "translation_key" => trans_key("Christian"), "position" => 1), array("account_id" => $this->author->account_id, "translation_key" => trans_key("Muslim"), "position" => 2), array("account_id" => $this->author->account_id, "translation_key" => trans_key("Hinduist"), "position" => 3), array("account_id" => $this->author->account_id, "translation_key" => trans_key("Buddhist"), "position" => 4), array("account_id" => $this->author->account_id, "translation_key" => trans_key("Shintoist"), "position" => 5), array("account_id" => $this->author->account_id, "translation_key" => trans_key("Taoist"), "position" => 6), array("account_id" => $this->author->account_id, "translation_key" => trans_key("Sikh"), "position" => 7), array("account_id" => $this->author->account_id, "translation_key" => trans_key("Jew"), "position" => 8), array("account_id" => $this->author->account_id, "translation_key" => trans_key("Atheist"), "position" => 9))); } } ?>
Did this file decode correctly?
Original Code
<?php
namespace App\Domains\Settings\CreateAccount\Jobs; use App\Domains\Settings\ManageAddressTypes\Services\CreateAddressType; use App\Domains\Settings\ManageCallReasons\Services\CreateCallReason; use App\Domains\Settings\ManageCallReasons\Services\CreateCallReasonType; use App\Domains\Settings\ManageContactInformationTypes\Services\CreateContactInformationType; use App\Domains\Settings\ManageGenders\Services\CreateGender; use App\Domains\Settings\ManageGroupTypes\Services\CreateGroupType; use App\Domains\Settings\ManageGroupTypes\Services\CreateGroupTypeRole; use App\Domains\Settings\ManageNotificationChannels\Services\CreateUserNotificationChannel; use App\Domains\Settings\ManagePetCategories\Services\CreatePetCategory; use App\Domains\Settings\ManagePostTemplates\Services\CreatePostTemplate; use App\Domains\Settings\ManagePostTemplates\Services\CreatePostTemplateSection; use App\Domains\Settings\ManagePronouns\Services\CreatePronoun; use App\Domains\Settings\ManageRelationshipTypes\Services\CreateRelationshipGroupType; use App\Domains\Settings\ManageTemplates\Services\AssociateModuleToTemplatePage; use App\Domains\Settings\ManageTemplates\Services\CreateModule; use App\Domains\Settings\ManageTemplates\Services\CreateTemplate; use App\Domains\Settings\ManageTemplates\Services\CreateTemplatePage; use App\Interfaces\ServiceInterface; use App\Models\Currency; use App\Models\Emotion; use App\Models\Module; use App\Models\RelationshipGroupType; use App\Models\RelationshipType; use App\Models\Template; use App\Models\TemplatePage; use App\Models\UserNotificationChannel; use App\Services\QueuableService; use Carbon\Carbon; use Illuminate\Support\Facades\DB; class SetupAccount extends QueuableService implements ServiceInterface { protected $template; public function rules() : array { return array("\x61\143\143\x6f\x75\156\x74\x5f\151\x64" => "\x72\x65\x71\x75\x69\x72\145\x64\x7c\x75\165\x69\144\x7c\x65\x78\x69\163\164\x73\x3a\x61\x63\143\x6f\165\156\164\163\54\151\144", "\x61\x75\x74\x68\157\162\x5f\151\x64" => "\x72\145\x71\x75\151\x72\x65\x64\x7c\x75\x75\151\144\174\x65\170\x69\x73\164\163\72\x75\163\x65\x72\163\54\151\144"); } public function permissions() : array { return array("\x61\165\x74\x68\x6f\x72\137\155\x75\x73\x74\x5f\x62\x65\x6c\157\x6e\147\137\164\x6f\x5f\x61\x63\143\157\165\156\x74"); } public function execute(array $data) : void { $this->validateRules($data); $this->populateCurrencies(); $this->addNotificationChannel(); $this->addTemplate(); $this->addTemplatePageContactInformation(); $this->addTemplatePageFeed(); $this->addTemplatePageContact(); $this->addTemplatePageSocial(); $this->addTemplatePageLifeEvents(); $this->addTemplatePageInformation(); $this->addFirstInformation(); } private function populateCurrencies() : void { $currencies = Currency::get(); foreach ($currencies as $currency) { $this->account()->currencies()->attach($currency->id); } } private function addNotificationChannel() : void { $channel = (new CreateUserNotificationChannel())->execute(array("\x61\143\x63\x6f\x75\156\x74\137\151\x64" => $this->author->account_id, "\x61\x75\x74\150\157\x72\x5f\x69\144" => $this->author->id, "\154\x61\142\x65\x6c" => "\x45\x6d\x61\x69\154\x20\141\x64\x64\162\145\163\163", "\x74\171\160\x65" => UserNotificationChannel::TYPE_EMAIL, "\x63\157\x6e\x74\145\156\164" => $this->author->email, "\x76\x65\162\151\x66\171\x5f\145\155\x61\x69\x6c" => false, "\x70\x72\145\146\x65\x72\162\x65\144\137\164\x69\155\x65" => "\x30\71\x3a\x30\60")); $channel->verified_at = Carbon::now(); $channel->active = true; $channel->save(); } private function addTemplate() : void { $request = array("\x61\x63\143\157\x75\156\x74\137\x69\144" => $this->author->account_id, "\x61\x75\164\150\157\162\x5f\x69\x64" => $this->author->id, "\156\141\x6d\x65" => null, "\x6e\141\155\145\x5f\x74\x72\x61\x6e\163\x6c\141\164\151\x6f\x6e\x5f\153\x65\171" => trans_key("\x44\x65\146\141\165\154\x74\x20\x74\145\x6d\160\x6c\x61\x74\145"), "\x63\141\x6e\x5f\142\x65\x5f\x64\145\x6c\145\x74\x65\144" => false); $this->template = (new CreateTemplate())->execute($request); } private function addTemplatePageContactInformation() : void { $templatePageContact = $this->template->pages()->firstWhere("\x74\171\160\x65", TemplatePage::TYPE_CONTACT); $module = (new CreateModule())->execute(array("\x61\143\143\157\165\156\x74\x5f\151\144" => $this->author->account_id, "\141\165\x74\x68\x6f\162\x5f\151\144" => $this->author->id, "\156\x61\155\x65\x5f\164\162\x61\156\163\x6c\x61\164\x69\x6f\156\x5f\x6b\145\x79" => trans_key("\101\166\141\164\141\x72"), "\164\x79\x70\x65" => Module::TYPE_AVATAR, "\143\x61\156\x5f\x62\x65\137\x64\x65\x6c\x65\164\145\144" => false, "\x72\145\x73\x65\x72\166\x65\x64\x5f\x74\x6f\137\143\157\x6e\x74\x61\143\x74\x5f\x69\x6e\146\x6f\x72\155\x61\164\151\157\156" => true)); (new AssociateModuleToTemplatePage())->execute(array("\x61\143\x63\157\x75\156\164\137\151\x64" => $this->author->account_id, "\x61\165\x74\150\x6f\x72\x5f\151\x64" => $this->author->id, "\x74\145\x6d\160\154\x61\164\145\137\x69\x64" => $this->template->id, "\164\x65\155\160\154\141\164\145\137\160\x61\x67\145\x5f\x69\144" => $templatePageContact->id, "\155\157\144\165\x6c\145\x5f\151\144" => $module->id)); $module = (new CreateModule())->execute(array("\141\x63\143\157\165\156\x74\137\151\x64" => $this->author->account_id, "\x61\165\164\x68\157\x72\x5f\x69\144" => $this->author->id, "\156\141\155\x65\x5f\x74\x72\141\156\163\154\141\164\x69\157\156\x5f\x6b\145\x79" => trans_key("\103\x6f\x6e\164\x61\143\164\40\x6e\x61\x6d\145"), "\164\x79\160\145" => Module::TYPE_CONTACT_NAMES, "\x63\x61\x6e\137\x62\145\137\144\x65\x6c\145\164\x65\x64" => false, "\x72\145\x73\x65\x72\166\145\144\x5f\164\157\x5f\143\x6f\156\x74\x61\143\164\x5f\x69\156\x66\x6f\x72\x6d\x61\164\151\157\156" => true)); (new AssociateModuleToTemplatePage())->execute(array("\x61\143\143\157\165\x6e\164\x5f\x69\144" => $this->author->account_id, "\x61\x75\x74\150\x6f\x72\x5f\x69\144" => $this->author->id, "\x74\145\155\160\154\141\x74\x65\137\x69\x64" => $this->template->id, "\x74\145\x6d\160\x6c\x61\x74\x65\x5f\160\x61\147\145\x5f\151\x64" => $templatePageContact->id, "\x6d\x6f\x64\165\154\x65\137\x69\x64" => $module->id)); $module = (new CreateModule())->execute(array("\141\143\143\x6f\x75\156\164\x5f\x69\x64" => $this->author->account_id, "\141\165\164\150\157\162\x5f\x69\x64" => $this->author->id, "\156\x61\155\145\x5f\x74\162\x61\x6e\x73\154\141\164\x69\157\156\x5f\153\145\x79" => trans_key("\106\x61\155\x69\x6c\x79\40\x73\165\155\x6d\x61\162\171"), "\164\x79\x70\145" => Module::TYPE_FAMILY_SUMMARY, "\143\x61\x6e\137\142\145\x5f\144\145\x6c\x65\x74\x65\x64" => false, "\x72\145\x73\x65\x72\166\145\144\x5f\x74\x6f\137\x63\157\156\164\141\143\164\x5f\x69\x6e\x66\157\162\155\x61\x74\151\157\156" => true)); (new AssociateModuleToTemplatePage())->execute(array("\x61\x63\x63\157\x75\x6e\164\x5f\151\144" => $this->author->account_id, "\141\165\164\150\157\162\x5f\151\144" => $this->author->id, "\164\145\x6d\160\x6c\141\x74\145\137\151\x64" => $this->template->id, "\x74\x65\x6d\x70\154\141\164\145\x5f\160\141\147\x65\137\151\144" => $templatePageContact->id, "\x6d\157\x64\x75\154\145\x5f\151\x64" => $module->id)); $module = (new CreateModule())->execute(array("\x61\143\143\157\165\x6e\164\x5f\x69\144" => $this->author->account_id, "\141\165\x74\150\157\x72\137\x69\144" => $this->author->id, "\156\x61\x6d\145\137\164\162\141\156\163\154\141\164\x69\157\156\x5f\x6b\x65\171" => trans_key("\x49\x6d\x70\157\x72\164\141\156\164\40\144\x61\x74\145\163"), "\164\x79\x70\x65" => Module::TYPE_IMPORTANT_DATES, "\x63\x61\156\137\142\x65\137\x64\x65\x6c\145\x74\145\x64" => false, "\162\145\x73\x65\162\166\x65\144\137\x74\157\137\x63\x6f\x6e\164\x61\x63\164\x5f\151\x6e\x66\157\162\x6d\x61\164\151\157\x6e" => true)); (new AssociateModuleToTemplatePage())->execute(array("\x61\143\143\x6f\165\x6e\x74\137\151\144" => $this->author->account_id, "\x61\x75\164\x68\x6f\x72\x5f\x69\144" => $this->author->id, "\x74\145\155\x70\154\141\x74\x65\137\151\144" => $this->template->id, "\164\145\155\x70\x6c\x61\x74\145\137\160\141\147\145\x5f\151\144" => $templatePageContact->id, "\x6d\x6f\144\165\x6c\145\x5f\x69\x64" => $module->id)); $module = (new CreateModule())->execute(array("\x61\x63\143\157\165\156\164\x5f\x69\x64" => $this->author->account_id, "\x61\165\164\x68\x6f\162\137\x69\x64" => $this->author->id, "\156\x61\155\x65\137\x74\162\x61\x6e\x73\154\x61\x74\x69\157\156\x5f\x6b\x65\171" => trans_key("\x47\145\x6e\144\x65\162\x20\141\156\144\40\160\x72\157\156\157\165\x6e"), "\164\171\x70\x65" => Module::TYPE_GENDER_PRONOUN, "\143\141\156\x5f\x62\145\137\144\145\154\145\164\145\144" => false, "\162\x65\163\145\x72\x76\145\x64\x5f\x74\157\137\143\157\x6e\164\x61\143\164\x5f\151\x6e\x66\x6f\162\x6d\x61\x74\x69\x6f\156" => true)); (new AssociateModuleToTemplatePage())->execute(array("\141\143\x63\157\x75\x6e\164\137\x69\x64" => $this->author->account_id, "\141\165\x74\150\157\x72\137\151\x64" => $this->author->id, "\164\145\x6d\160\x6c\141\164\x65\137\x69\x64" => $this->template->id, "\164\x65\155\x70\x6c\x61\x74\145\137\160\x61\147\145\x5f\x69\x64" => $templatePageContact->id, "\x6d\157\x64\x75\154\x65\137\x69\144" => $module->id)); $module = (new CreateModule())->execute(array("\x61\143\143\157\x75\156\x74\137\x69\x64" => $this->author->account_id, "\141\165\164\x68\x6f\x72\137\x69\144" => $this->author->id, "\x6e\x61\x6d\x65\137\x74\x72\141\156\x73\154\141\x74\x69\x6f\x6e\x5f\x6b\145\171" => trans_key("\114\x61\142\145\154\163"), "\x74\171\x70\145" => Module::TYPE_LABELS, "\143\141\x6e\x5f\x62\x65\x5f\144\145\154\x65\x74\145\144" => false, "\x72\145\163\145\162\x76\x65\x64\137\x74\x6f\x5f\x63\157\156\164\141\x63\164\x5f\x69\x6e\x66\x6f\162\155\141\164\x69\x6f\x6e" => true)); (new AssociateModuleToTemplatePage())->execute(array("\141\x63\143\157\165\156\164\x5f\151\144" => $this->author->account_id, "\141\x75\x74\150\x6f\162\x5f\151\x64" => $this->author->id, "\164\x65\x6d\x70\x6c\x61\x74\x65\137\151\x64" => $this->template->id, "\164\x65\x6d\x70\154\x61\x74\x65\137\160\x61\x67\x65\x5f\151\144" => $templatePageContact->id, "\155\x6f\x64\165\154\x65\137\x69\x64" => $module->id)); $module = (new CreateModule())->execute(array("\141\x63\143\157\x75\x6e\x74\137\151\144" => $this->author->account_id, "\141\165\164\150\x6f\x72\137\151\x64" => $this->author->id, "\x6e\141\155\x65\x5f\164\x72\141\156\x73\x6c\x61\164\151\x6f\156\x5f\153\x65\x79" => trans_key("\x4a\x6f\142\x20\x69\x6e\x66\x6f\162\x6d\x61\164\x69\x6f\x6e"), "\x74\171\160\x65" => Module::TYPE_COMPANY, "\x63\141\x6e\137\x62\x65\x5f\144\x65\154\x65\164\x65\144" => false, "\x72\145\163\x65\162\x76\145\144\x5f\164\157\x5f\x63\157\156\164\141\143\x74\x5f\x69\156\146\x6f\162\x6d\141\164\151\x6f\156" => true)); (new AssociateModuleToTemplatePage())->execute(array("\141\x63\143\x6f\x75\156\164\137\x69\144" => $this->author->account_id, "\x61\165\x74\x68\x6f\162\137\x69\144" => $this->author->id, "\164\145\155\160\x6c\x61\x74\145\x5f\151\144" => $this->template->id, "\x74\x65\155\x70\154\141\x74\145\x5f\160\141\147\x65\x5f\x69\x64" => $templatePageContact->id, "\155\x6f\144\x75\x6c\x65\x5f\151\x64" => $module->id)); $module = (new CreateModule())->execute(array("\x61\143\143\157\165\156\x74\137\x69\x64" => $this->author->account_id, "\141\165\x74\x68\x6f\162\x5f\x69\x64" => $this->author->id, "\x6e\x61\x6d\x65\137\164\162\141\156\163\154\141\164\151\157\156\x5f\x6b\x65\x79" => trans_key("\122\x65\x6c\151\147\x69\157\156\x73"), "\x74\171\x70\x65" => Module::TYPE_RELIGIONS, "\143\141\x6e\x5f\x62\x65\137\144\145\154\x65\164\145\144" => false, "\x72\x65\x73\145\162\166\145\144\137\x74\157\x5f\143\157\156\x74\x61\x63\x74\x5f\151\x6e\x66\157\x72\155\141\x74\151\x6f\x6e" => true)); (new AssociateModuleToTemplatePage())->execute(array("\141\143\x63\x6f\x75\156\x74\137\x69\x64" => $this->author->account_id, "\141\x75\x74\x68\x6f\x72\137\x69\x64" => $this->author->id, "\x74\x65\155\160\154\141\164\145\x5f\x69\144" => $this->template->id, "\x74\x65\155\160\154\x61\164\x65\137\x70\141\147\145\x5f\x69\x64" => $templatePageContact->id, "\155\x6f\x64\x75\x6c\145\x5f\x69\144" => $module->id)); } private function addTemplatePageFeed() : void { $templatePageFeed = (new CreateTemplatePage())->execute(array("\x61\x63\x63\x6f\165\156\x74\137\151\144" => $this->author->account_id, "\141\x75\164\x68\157\x72\137\151\x64" => $this->author->id, "\x74\145\x6d\x70\154\141\164\x65\x5f\151\x64" => $this->template->id, "\156\141\155\x65\137\x74\162\x61\x6e\x73\154\141\164\151\157\x6e\x5f\x6b\x65\171" => trans_key("\x41\143\x74\x69\x76\x69\x74\x79\x20\146\145\x65\144"), "\x63\141\x6e\137\x62\x65\x5f\144\x65\154\x65\164\145\x64" => true)); $module = (new CreateModule())->execute(array("\141\x63\x63\x6f\165\x6e\164\x5f\x69\x64" => $this->author->account_id, "\x61\165\164\150\x6f\x72\137\x69\144" => $this->author->id, "\156\x61\x6d\x65\x5f\x74\x72\x61\156\163\x6c\141\164\x69\x6f\x6e\x5f\153\145\171" => trans_key("\103\157\156\164\141\x63\x74\x20\146\145\x65\x64"), "\164\171\x70\x65" => Module::TYPE_FEED, "\143\x61\156\x5f\x62\x65\x5f\x64\145\154\145\164\x65\144" => false)); (new AssociateModuleToTemplatePage())->execute(array("\141\x63\143\157\165\156\164\x5f\151\144" => $this->author->account_id, "\141\x75\x74\x68\x6f\x72\137\151\144" => $this->author->id, "\x74\x65\155\x70\154\141\x74\145\137\151\144" => $this->template->id, "\164\145\x6d\x70\154\x61\x74\145\137\160\x61\147\145\x5f\151\x64" => $templatePageFeed->id, "\x6d\x6f\144\x75\154\x65\x5f\x69\144" => $module->id)); } private function addTemplatePageContact() : void { $template = (new CreateTemplatePage())->execute(array("\141\143\x63\x6f\165\156\164\x5f\151\x64" => $this->author->account_id, "\x61\165\164\x68\157\x72\x5f\151\144" => $this->author->id, "\164\x65\x6d\160\x6c\x61\164\x65\x5f\x69\x64" => $this->template->id, "\x6e\141\155\145\x5f\x74\162\141\x6e\163\154\141\164\x69\157\156\x5f\153\x65\x79" => trans_key("\127\141\x79\x73\40\164\x6f\40\143\157\x6e\x6e\x65\143\164"), "\143\x61\x6e\137\x62\x65\x5f\x64\145\154\145\164\x65\x64" => true)); $module = (new CreateModule())->execute(array("\141\x63\x63\x6f\165\x6e\x74\x5f\151\x64" => $this->author->account_id, "\141\165\x74\150\x6f\x72\x5f\x69\144" => $this->author->id, "\156\141\x6d\x65\137\164\162\141\156\x73\x6c\141\x74\151\157\156\137\153\145\x79" => trans_key("\101\144\144\162\x65\163\x73\x65\163"), "\164\x79\x70\145" => Module::TYPE_ADDRESSES, "\x63\x61\156\137\x62\x65\137\x64\145\x6c\x65\x74\x65\x64" => false)); (new AssociateModuleToTemplatePage())->execute(array("\x61\143\143\157\165\x6e\164\x5f\x69\x64" => $this->author->account_id, "\141\x75\x74\150\157\162\x5f\x69\144" => $this->author->id, "\x74\x65\155\x70\154\141\164\x65\137\x69\144" => $this->template->id, "\164\145\x6d\160\x6c\x61\x74\145\137\160\141\x67\x65\137\151\x64" => $template->id, "\155\x6f\144\x75\154\145\x5f\151\x64" => $module->id)); $module = (new CreateModule())->execute(array("\x61\x63\143\x6f\x75\x6e\x74\137\151\x64" => $this->author->account_id, "\x61\x75\164\150\157\x72\137\x69\144" => $this->author->id, "\x6e\x61\x6d\145\137\x74\x72\141\x6e\163\x6c\x61\x74\151\x6f\x6e\x5f\x6b\145\171" => trans_key("\103\157\x6e\164\x61\143\x74\x20\151\156\146\157\x72\x6d\x61\x74\151\157\156"), "\164\171\x70\145" => Module::TYPE_CONTACT_INFORMATION, "\x63\141\x6e\x5f\x62\145\x5f\x64\145\154\145\164\145\144" => false)); (new AssociateModuleToTemplatePage())->execute(array("\x61\x63\x63\x6f\x75\x6e\164\137\151\144" => $this->author->account_id, "\141\165\164\x68\157\x72\x5f\x69\x64" => $this->author->id, "\164\145\x6d\160\154\141\x74\145\137\x69\144" => $this->template->id, "\164\x65\x6d\160\154\x61\164\x65\x5f\160\x61\147\145\137\x69\144" => $template->id, "\x6d\x6f\144\165\x6c\x65\137\x69\x64" => $module->id)); } private function addTemplatePageSocial() : void { $templatePageSocial = (new CreateTemplatePage())->execute(array("\x61\x63\143\x6f\x75\156\x74\137\x69\x64" => $this->author->account_id, "\x61\x75\164\150\x6f\162\137\151\x64" => $this->author->id, "\x74\145\155\x70\154\141\x74\145\x5f\x69\x64" => $this->template->id, "\156\x61\155\x65\x5f\x74\x72\141\x6e\163\x6c\141\164\x69\157\x6e\137\153\145\x79" => trans_key("\123\157\x63\151\141\154"), "\x63\141\x6e\x5f\142\145\x5f\144\145\x6c\x65\164\x65\x64" => true)); $module = (new CreateModule())->execute(array("\141\143\143\x6f\165\x6e\164\x5f\151\x64" => $this->author->account_id, "\141\x75\164\x68\157\162\x5f\151\x64" => $this->author->id, "\x6e\x61\155\145\137\164\x72\141\x6e\163\x6c\x61\x74\x69\x6f\156\137\x6b\145\x79" => trans_key("\122\x65\x6c\141\x74\x69\157\156\x73\150\x69\160\x73"), "\164\x79\160\x65" => Module::TYPE_RELATIONSHIPS, "\143\x61\156\137\142\145\137\144\x65\154\145\x74\145\144" => false)); (new AssociateModuleToTemplatePage())->execute(array("\141\x63\x63\x6f\x75\156\164\137\151\x64" => $this->author->account_id, "\x61\x75\164\150\157\x72\137\x69\x64" => $this->author->id, "\164\x65\155\x70\x6c\141\164\145\x5f\151\x64" => $this->template->id, "\164\x65\x6d\160\x6c\141\164\145\137\x70\141\147\x65\137\151\144" => $templatePageSocial->id, "\155\x6f\144\x75\154\x65\x5f\151\x64" => $module->id)); $module = (new CreateModule())->execute(array("\x61\143\143\x6f\165\156\x74\137\151\144" => $this->author->account_id, "\x61\165\x74\150\157\162\137\x69\x64" => $this->author->id, "\156\141\x6d\145\x5f\x74\162\x61\156\x73\154\x61\x74\x69\x6f\x6e\137\153\145\x79" => trans_key("\x50\x65\164\163"), "\164\x79\x70\145" => Module::TYPE_PETS, "\143\141\x6e\137\x62\145\x5f\144\x65\154\145\164\145\x64" => false)); (new AssociateModuleToTemplatePage())->execute(array("\141\x63\x63\x6f\165\x6e\x74\x5f\x69\144" => $this->author->account_id, "\x61\x75\164\150\157\x72\137\x69\x64" => $this->author->id, "\164\x65\x6d\160\154\141\164\145\x5f\x69\x64" => $this->template->id, "\x74\x65\155\160\x6c\141\164\x65\x5f\160\141\147\x65\x5f\x69\x64" => $templatePageSocial->id, "\155\157\x64\x75\154\x65\x5f\151\144" => $module->id)); $module = (new CreateModule())->execute(array("\141\x63\x63\157\x75\156\x74\137\151\x64" => $this->author->account_id, "\141\x75\164\150\x6f\x72\x5f\151\144" => $this->author->id, "\156\141\x6d\145\137\164\162\x61\x6e\163\x6c\x61\x74\x69\157\x6e\137\153\145\171" => trans_key("\x47\x72\x6f\165\160\x73"), "\164\x79\x70\145" => Module::TYPE_GROUPS, "\x63\141\156\x5f\x62\145\137\144\145\x6c\145\x74\x65\144" => false)); (new AssociateModuleToTemplatePage())->execute(array("\141\x63\x63\157\165\156\x74\137\x69\x64" => $this->author->account_id, "\141\165\164\150\x6f\162\x5f\x69\x64" => $this->author->id, "\x74\145\x6d\x70\x6c\141\164\145\137\151\x64" => $this->template->id, "\164\x65\155\x70\154\141\164\145\137\x70\x61\147\x65\137\151\x64" => $templatePageSocial->id, "\155\157\144\165\154\x65\137\151\x64" => $module->id)); } private function addTemplatePageLifeEvents() : void { $templatePageSocial = (new CreateTemplatePage())->execute(array("\x61\x63\x63\x6f\165\156\x74\137\151\x64" => $this->author->account_id, "\141\x75\x74\x68\x6f\x72\x5f\x69\144" => $this->author->id, "\x74\145\155\160\154\x61\x74\145\137\151\144" => $this->template->id, "\156\141\155\145\x5f\x74\x72\x61\x6e\163\154\x61\x74\151\157\x6e\x5f\153\145\x79" => trans_key("\x4c\x69\146\x65\40\46\40\147\x6f\x61\x6c\x73"), "\x63\141\156\137\142\x65\x5f\144\145\154\145\x74\145\144" => true)); $module = (new CreateModule())->execute(array("\x61\143\x63\x6f\165\156\x74\x5f\x69\x64" => $this->author->account_id, "\141\x75\x74\150\157\x72\137\x69\x64" => $this->author->id, "\156\x61\x6d\145\x5f\164\x72\141\156\163\154\141\164\151\x6f\156\x5f\153\x65\171" => trans_key("\114\x69\x66\145"), "\x74\x79\160\x65" => Module::TYPE_LIFE_EVENTS, "\x63\141\x6e\137\x62\x65\137\x64\145\x6c\x65\x74\145\144" => false)); (new AssociateModuleToTemplatePage())->execute(array("\141\x63\143\157\165\x6e\164\137\x69\x64" => $this->author->account_id, "\x61\x75\164\x68\157\162\x5f\x69\144" => $this->author->id, "\x74\145\155\x70\154\141\x74\145\137\x69\144" => $this->template->id, "\x74\145\155\160\154\x61\x74\145\137\160\141\x67\x65\x5f\x69\x64" => $templatePageSocial->id, "\155\157\144\165\x6c\x65\x5f\151\x64" => $module->id)); $module = (new CreateModule())->execute(array("\x61\x63\143\x6f\165\x6e\x74\x5f\x69\x64" => $this->author->account_id, "\141\165\164\150\x6f\162\x5f\151\144" => $this->author->id, "\x6e\x61\x6d\x65\137\x74\162\x61\x6e\x73\x6c\x61\164\x69\x6f\156\137\x6b\x65\171" => trans_key("\x47\157\141\x6c\163"), "\164\x79\x70\x65" => Module::TYPE_GOALS, "\143\x61\156\137\142\x65\x5f\144\145\x6c\145\164\145\144" => false)); (new AssociateModuleToTemplatePage())->execute(array("\141\143\x63\x6f\x75\156\x74\137\151\x64" => $this->author->account_id, "\141\165\x74\150\x6f\162\137\x69\144" => $this->author->id, "\164\145\155\x70\x6c\141\x74\145\137\151\144" => $this->template->id, "\x74\145\155\160\154\x61\x74\x65\137\x70\x61\x67\145\x5f\151\x64" => $templatePageSocial->id, "\x6d\x6f\144\165\154\145\x5f\151\144" => $module->id)); } private function addTemplatePageInformation() : void { $templatePageInformation = (new CreateTemplatePage())->execute(array("\141\x63\x63\157\165\156\164\137\151\144" => $this->author->account_id, "\x61\x75\164\x68\x6f\162\137\x69\x64" => $this->author->id, "\164\x65\155\x70\x6c\141\164\145\137\151\x64" => $this->template->id, "\x6e\141\x6d\145\137\164\162\x61\156\163\154\x61\164\x69\157\156\137\x6b\145\x79" => trans_key("\111\156\x66\x6f\x72\x6d\x61\164\x69\157\x6e"), "\x63\x61\156\137\142\x65\137\144\x65\154\145\164\145\x64" => true)); $module = (new CreateModule())->execute(array("\141\143\x63\x6f\165\156\x74\x5f\x69\144" => $this->author->account_id, "\141\x75\164\x68\x6f\162\137\x69\144" => $this->author->id, "\156\141\155\145\137\164\162\141\x6e\163\x6c\141\x74\x69\157\156\x5f\153\x65\x79" => trans_key("\x44\157\x63\165\x6d\x65\x6e\x74\x73"), "\164\x79\x70\145" => Module::TYPE_DOCUMENTS, "\x63\x61\x6e\137\x62\145\x5f\x64\x65\x6c\x65\x74\145\144" => false)); (new AssociateModuleToTemplatePage())->execute(array("\x61\143\143\157\x75\156\164\137\151\144" => $this->author->account_id, "\x61\x75\164\x68\x6f\x72\x5f\151\x64" => $this->author->id, "\x74\x65\155\160\154\x61\164\x65\x5f\151\x64" => $this->template->id, "\x74\x65\x6d\160\x6c\x61\164\x65\137\x70\141\147\x65\x5f\x69\x64" => $templatePageInformation->id, "\x6d\157\x64\165\x6c\x65\137\151\144" => $module->id)); $module = (new CreateModule())->execute(array("\x61\143\143\157\x75\156\x74\x5f\x69\x64" => $this->author->account_id, "\141\x75\x74\x68\157\162\x5f\151\144" => $this->author->id, "\156\x61\x6d\x65\137\x74\x72\x61\156\x73\154\x61\164\151\157\156\137\x6b\x65\x79" => trans_key("\120\x68\x6f\164\157\163"), "\x74\171\x70\145" => Module::TYPE_PHOTOS, "\143\141\x6e\x5f\142\x65\x5f\x64\145\154\145\164\x65\x64" => false)); (new AssociateModuleToTemplatePage())->execute(array("\141\143\x63\x6f\x75\x6e\164\137\151\x64" => $this->author->account_id, "\141\165\x74\150\157\162\137\x69\x64" => $this->author->id, "\x74\x65\155\x70\x6c\141\x74\x65\137\151\x64" => $this->template->id, "\164\145\x6d\160\x6c\x61\x74\145\x5f\x70\x61\147\x65\x5f\x69\x64" => $templatePageInformation->id, "\155\x6f\x64\x75\154\145\x5f\151\144" => $module->id)); $module = (new CreateModule())->execute(array("\141\x63\143\x6f\165\x6e\x74\x5f\151\144" => $this->author->account_id, "\x61\x75\x74\150\157\x72\x5f\x69\x64" => $this->author->id, "\156\141\155\x65\137\164\162\141\156\163\154\x61\164\151\157\x6e\137\153\145\x79" => trans_key("\116\x6f\x74\145\163"), "\164\171\x70\x65" => Module::TYPE_NOTES, "\143\x61\x6e\137\x62\145\x5f\x64\145\x6c\145\164\x65\144" => false, "\x70\141\x67\151\x6e\x61\x74\151\157\x6e" => 3)); (new AssociateModuleToTemplatePage())->execute(array("\x61\143\x63\157\x75\156\164\x5f\151\144" => $this->author->account_id, "\141\165\x74\150\x6f\x72\x5f\151\x64" => $this->author->id, "\164\145\x6d\x70\x6c\x61\x74\x65\x5f\151\144" => $this->template->id, "\x74\145\155\160\154\141\164\x65\137\160\x61\x67\x65\x5f\151\x64" => $templatePageInformation->id, "\155\x6f\144\165\154\145\137\x69\x64" => $module->id)); $module = (new CreateModule())->execute(array("\141\x63\143\157\x75\156\164\x5f\151\144" => $this->author->account_id, "\141\x75\x74\150\x6f\162\137\x69\144" => $this->author->id, "\x6e\141\155\x65\x5f\x74\162\x61\156\163\x6c\x61\164\151\157\x6e\x5f\153\x65\171" => trans_key("\122\x65\155\151\x6e\x64\x65\x72\163"), "\164\x79\x70\x65" => Module::TYPE_REMINDERS, "\143\141\156\137\142\x65\x5f\x64\145\154\x65\164\x65\144" => false)); (new AssociateModuleToTemplatePage())->execute(array("\141\x63\x63\157\165\156\164\x5f\151\x64" => $this->author->account_id, "\x61\165\x74\x68\157\x72\137\x69\x64" => $this->author->id, "\164\145\x6d\x70\x6c\x61\x74\145\137\151\144" => $this->template->id, "\164\145\155\x70\154\x61\164\x65\137\x70\x61\x67\x65\x5f\x69\144" => $templatePageInformation->id, "\x6d\x6f\144\165\x6c\145\137\x69\144" => $module->id)); $module = (new CreateModule())->execute(array("\x61\x63\143\157\165\156\164\x5f\151\x64" => $this->author->account_id, "\x61\165\x74\x68\157\x72\x5f\151\144" => $this->author->id, "\156\x61\x6d\x65\137\164\x72\x61\x6e\x73\x6c\141\164\151\157\156\x5f\x6b\145\171" => trans_key("\114\x6f\141\x6e\x73"), "\164\x79\160\x65" => Module::TYPE_LOANS, "\x63\141\x6e\137\142\145\137\144\145\x6c\145\x74\x65\144" => false)); (new AssociateModuleToTemplatePage())->execute(array("\141\x63\x63\157\165\156\164\137\151\144" => $this->author->account_id, "\x61\165\164\x68\157\162\x5f\x69\x64" => $this->author->id, "\x74\145\x6d\x70\154\141\x74\x65\x5f\151\144" => $this->template->id, "\164\145\x6d\x70\x6c\x61\164\145\137\160\141\x67\x65\x5f\151\144" => $templatePageInformation->id, "\155\x6f\144\165\154\x65\x5f\x69\x64" => $module->id)); $module = (new CreateModule())->execute(array("\141\143\x63\x6f\165\156\x74\137\151\144" => $this->author->account_id, "\x61\165\164\150\157\162\x5f\x69\144" => $this->author->id, "\156\141\x6d\145\x5f\164\162\x61\156\x73\154\141\x74\x69\157\x6e\137\153\145\171" => trans_key("\124\141\163\x6b\163"), "\x74\x79\160\x65" => Module::TYPE_TASKS, "\143\141\x6e\x5f\x62\145\137\144\x65\154\x65\164\x65\x64" => false)); (new AssociateModuleToTemplatePage())->execute(array("\141\143\143\x6f\165\x6e\164\137\x69\144" => $this->author->account_id, "\141\165\x74\x68\157\x72\137\x69\144" => $this->author->id, "\164\x65\155\x70\x6c\141\x74\145\x5f\151\144" => $this->template->id, "\x74\x65\155\160\x6c\x61\x74\145\137\x70\141\147\x65\137\151\144" => $templatePageInformation->id, "\x6d\x6f\x64\165\x6c\145\137\x69\x64" => $module->id)); $module = (new CreateModule())->execute(array("\x61\x63\x63\157\165\x6e\164\137\151\144" => $this->author->account_id, "\141\165\x74\150\157\162\x5f\x69\144" => $this->author->id, "\x6e\x61\x6d\145\x5f\164\x72\141\156\163\154\x61\164\x69\x6f\156\x5f\153\145\171" => trans_key("\x43\x61\x6c\x6c\163"), "\x74\x79\x70\145" => Module::TYPE_CALLS, "\143\141\156\x5f\142\x65\x5f\x64\145\x6c\145\164\x65\144" => false)); (new AssociateModuleToTemplatePage())->execute(array("\141\143\143\157\x75\x6e\x74\x5f\x69\144" => $this->author->account_id, "\141\x75\x74\150\x6f\162\137\151\144" => $this->author->id, "\164\x65\155\x70\154\x61\164\145\x5f\151\x64" => $this->template->id, "\164\145\155\x70\x6c\141\164\x65\x5f\x70\x61\147\145\137\151\x64" => $templatePageInformation->id, "\155\x6f\x64\165\x6c\145\x5f\151\144" => $module->id)); $module = (new CreateModule())->execute(array("\x61\x63\143\157\165\x6e\164\x5f\x69\144" => $this->author->account_id, "\x61\x75\x74\150\157\x72\137\x69\x64" => $this->author->id, "\156\141\x6d\145\x5f\164\x72\141\x6e\x73\154\141\164\x69\157\156\x5f\153\145\171" => trans_key("\x50\x6f\x73\x74\163"), "\164\x79\160\x65" => Module::TYPE_POSTS, "\143\x61\x6e\x5f\x62\145\x5f\x64\x65\154\145\x74\145\x64" => false)); (new AssociateModuleToTemplatePage())->execute(array("\141\143\x63\157\165\156\x74\137\x69\x64" => $this->author->account_id, "\141\x75\x74\x68\x6f\162\137\x69\144" => $this->author->id, "\164\145\155\160\154\x61\164\145\x5f\151\144" => $this->template->id, "\164\145\155\160\x6c\141\x74\x65\137\x70\x61\x67\x65\137\151\144" => $templatePageInformation->id, "\155\157\x64\x75\154\x65\137\x69\x64" => $module->id)); } private function addFirstInformation() : void { $this->addGenders(); $this->addPronouns(); $this->addGroupTypes(); $this->addRelationshipTypes(); $this->addAddressTypes(); $this->addCallReasonTypes(); $this->addContactInformation(); $this->addPetCategories(); $this->addEmotions(); $this->addGiftOccasions(); $this->addGiftStates(); $this->addPostTemplates(); $this->addReligions(); } private function addGenders() : void { $types = collect(array(trans_key("\x4d\141\154\x65"), trans_key("\106\x65\155\x61\154\145"), trans_key("\117\164\x68\x65\x72"))); foreach ($types as $type) { $request = array("\x61\x63\x63\x6f\x75\x6e\x74\x5f\151\144" => $this->author->account_id, "\x61\x75\x74\x68\x6f\162\x5f\151\144" => $this->author->id, "\156\x61\x6d\x65\x5f\164\162\141\x6e\163\x6c\141\164\x69\x6f\x6e\x5f\153\145\x79" => $type); (new CreateGender())->execute($request); } } private function addPronouns() : void { $pronouns = collect(array(trans_key("\x68\x65\x2f\150\x69\x6d"), trans_key("\163\x68\x65\57\150\x65\162"), trans_key("\164\x68\x65\x79\57\x74\150\145\x6d"), trans_key("\160\x65\162\x2f\x70\x65\162"), trans_key("\166\145\57\166\145\162"), trans_key("\x78\x65\57\x78\x65\x6d"), trans_key("\172\145\57\150\151\162"))); foreach ($pronouns as $pronoun) { $request = array("\x61\x63\143\157\x75\x6e\x74\137\151\144" => $this->author->account_id, "\141\x75\x74\x68\157\162\137\x69\x64" => $this->author->id, "\156\x61\x6d\x65\x5f\x74\x72\x61\x6e\163\154\x61\164\x69\157\x6e\137\x6b\145\171" => $pronoun); (new CreatePronoun())->execute($request); } } private function addGroupTypes() : void { $groupType = (new CreateGroupType())->execute(array("\141\x63\143\157\165\x6e\x74\x5f\x69\144" => $this->author->account_id, "\141\x75\164\150\x6f\x72\137\151\x64" => $this->author->id, "\x6c\x61\142\145\154\x5f\164\162\141\x6e\163\154\141\x74\151\x6f\156\137\153\x65\x79" => trans_key("\x46\x61\155\151\x6c\x79"))); (new CreateGroupTypeRole())->execute(array("\x61\143\143\x6f\x75\156\x74\137\151\144" => $this->author->account_id, "\141\165\x74\x68\157\x72\x5f\x69\x64" => $this->author->id, "\147\162\x6f\165\x70\137\x74\x79\x70\145\137\151\144" => $groupType->id, "\x6c\141\142\145\x6c\137\164\162\141\156\163\154\x61\x74\151\x6f\x6e\137\x6b\145\x79" => trans_key("\x50\x61\x72\x65\156\x74"))); (new CreateGroupTypeRole())->execute(array("\x61\143\x63\157\x75\x6e\x74\137\x69\144" => $this->author->account_id, "\141\x75\164\x68\x6f\162\x5f\151\144" => $this->author->id, "\x67\162\157\165\160\137\164\x79\160\x65\137\151\144" => $groupType->id, "\154\141\142\x65\x6c\137\164\162\x61\x6e\163\x6c\x61\164\151\x6f\156\x5f\153\x65\171" => trans_key("\103\150\x69\x6c\144"))); $groupType = (new CreateGroupType())->execute(array("\141\x63\143\x6f\x75\x6e\164\137\x69\x64" => $this->author->account_id, "\x61\165\164\x68\x6f\x72\x5f\151\x64" => $this->author->id, "\x6c\141\142\x65\154\137\164\162\x61\156\x73\x6c\x61\x74\x69\157\x6e\137\x6b\x65\171" => trans_key("\x43\157\165\x70\x6c\x65"))); (new CreateGroupTypeRole())->execute(array("\141\x63\x63\x6f\165\x6e\164\x5f\151\144" => $this->author->account_id, "\x61\165\164\x68\x6f\162\137\x69\144" => $this->author->id, "\x67\x72\x6f\x75\x70\x5f\164\x79\160\x65\137\151\x64" => $groupType->id, "\x6c\141\142\x65\x6c\137\x74\162\x61\x6e\x73\x6c\x61\x74\x69\x6f\156\x5f\153\x65\x79" => trans_key("\120\141\162\164\x6e\x65\x72"))); $groupType = (new CreateGroupType())->execute(array("\x61\143\143\x6f\165\x6e\x74\x5f\x69\144" => $this->author->account_id, "\141\165\164\x68\157\x72\x5f\151\x64" => $this->author->id, "\154\x61\x62\x65\x6c\137\x74\x72\141\156\x73\x6c\x61\164\x69\x6f\156\137\x6b\x65\171" => trans_key("\103\154\165\142"))); $groupType = (new CreateGroupType())->execute(array("\x61\143\x63\157\165\156\164\x5f\x69\x64" => $this->author->account_id, "\141\165\x74\150\157\x72\x5f\x69\144" => $this->author->id, "\154\141\142\145\x6c\x5f\164\162\141\156\163\x6c\x61\164\151\157\x6e\x5f\153\x65\171" => trans_key("\x41\x73\163\x6f\x63\151\141\x74\x69\x6f\x6e"))); $groupType = (new CreateGroupType())->execute(array("\141\143\143\157\x75\156\164\x5f\151\x64" => $this->author->account_id, "\141\165\x74\150\157\162\x5f\x69\x64" => $this->author->id, "\154\141\x62\x65\154\137\164\x72\141\x6e\x73\154\141\164\x69\x6f\156\x5f\x6b\145\171" => trans_key("\x52\157\x6f\155\x61\x74\145\x73"))); } private function addRelationshipTypes() : void { $group = (new CreateRelationshipGroupType())->execute(array("\x61\143\x63\157\165\x6e\x74\x5f\151\x64" => $this->author->account_id, "\x61\x75\x74\x68\x6f\162\137\151\x64" => $this->author->id, "\x6e\x61\x6d\x65\x5f\164\162\141\156\163\x6c\141\164\x69\x6f\x6e\x5f\x6b\x65\x79" => trans_key("\114\x6f\166\x65"), "\x63\x61\x6e\x5f\142\145\137\144\145\x6c\145\164\145\144" => false, "\164\171\x70\145" => RelationshipGroupType::TYPE_LOVE)); DB::table("\162\x65\154\x61\164\151\157\156\x73\150\x69\160\x5f\164\x79\160\x65\163")->insert(array(array("\x6e\x61\155\x65\137\x74\162\141\x6e\x73\x6c\x61\x74\x69\157\x6e\137\153\x65\171" => trans_key("\x73\x69\147\x6e\151\x66\x69\143\141\156\x74\40\157\x74\x68\x65\162"), "\x6e\141\x6d\x65\137\162\x65\x76\145\162\x73\145\x5f\162\x65\x6c\x61\164\151\157\x6e\163\x68\151\160\x5f\164\x72\141\x6e\163\154\141\164\151\x6f\x6e\137\x6b\x65\171" => trans_key("\163\151\147\x6e\151\146\151\x63\141\x6e\x74\x20\157\164\150\145\162"), "\x72\x65\x6c\141\x74\151\157\x6e\163\150\151\160\137\x67\162\x6f\x75\x70\137\164\171\160\145\x5f\x69\144" => $group->id, "\x63\141\156\x5f\142\145\137\x64\x65\154\145\164\x65\x64" => false, "\x74\x79\160\145" => RelationshipType::TYPE_LOVE), array("\156\x61\155\145\x5f\164\162\141\156\163\154\141\164\x69\x6f\x6e\x5f\x6b\x65\171" => trans_key("\163\160\x6f\165\163\145"), "\x6e\141\155\x65\137\162\x65\x76\145\162\x73\x65\x5f\162\145\x6c\141\164\x69\x6f\156\x73\150\151\160\x5f\164\162\x61\156\x73\154\141\164\151\x6f\x6e\137\153\x65\x79" => trans_key("\x73\160\157\165\163\145"), "\x72\x65\154\x61\164\x69\x6f\156\x73\x68\151\x70\x5f\x67\x72\x6f\165\160\x5f\x74\171\x70\x65\137\x69\x64" => $group->id, "\143\141\x6e\x5f\142\x65\x5f\x64\x65\154\x65\164\145\144" => false, "\x74\x79\160\145" => RelationshipType::TYPE_LOVE), array("\156\x61\155\145\137\164\162\141\156\x73\154\x61\x74\151\x6f\x6e\137\x6b\145\x79" => trans_key("\x64\141\164\145"), "\x6e\x61\x6d\145\137\162\x65\166\145\162\x73\145\x5f\x72\x65\154\x61\164\x69\157\156\x73\150\x69\x70\x5f\x74\x72\x61\156\163\x6c\141\x74\151\x6f\156\137\153\145\171" => trans_key("\x64\141\164\x65"), "\162\145\154\141\x74\x69\157\156\163\150\151\x70\x5f\x67\162\x6f\165\160\137\x74\171\160\145\137\151\x64" => $group->id, "\x63\141\x6e\x5f\142\x65\137\x64\145\x6c\x65\x74\145\144" => true, "\164\171\160\x65" => null), array("\156\141\155\x65\137\164\162\x61\156\163\x6c\141\x74\x69\x6f\x6e\137\x6b\x65\171" => trans_key("\154\157\x76\145\x72"), "\156\141\x6d\x65\x5f\162\145\166\x65\162\163\x65\137\162\145\154\x61\x74\x69\x6f\x6e\x73\150\x69\x70\137\x74\x72\141\x6e\x73\154\x61\x74\151\157\156\137\153\145\171" => trans_key("\154\157\x76\x65\x72"), "\x72\x65\154\x61\x74\x69\157\x6e\163\x68\x69\160\137\x67\162\157\x75\160\137\x74\171\x70\x65\137\x69\x64" => $group->id, "\143\141\x6e\x5f\x62\x65\137\144\145\x6c\x65\164\145\x64" => true, "\164\x79\160\145" => null), array("\x6e\141\x6d\145\137\x74\162\141\x6e\x73\x6c\x61\164\x69\157\x6e\x5f\x6b\145\171" => trans_key("\151\156\x20\x6c\x6f\166\145\40\167\x69\164\150"), "\x6e\x61\155\145\x5f\162\x65\x76\x65\162\163\145\x5f\162\145\x6c\x61\x74\x69\157\x6e\163\150\151\x70\137\x74\162\x61\x6e\163\154\x61\x74\151\x6f\156\x5f\x6b\145\171" => trans_key("\x6c\x6f\x76\145\x64\x20\142\x79"), "\162\145\154\141\164\151\157\x6e\x73\x68\x69\160\x5f\x67\x72\x6f\x75\160\x5f\164\171\160\x65\137\151\x64" => $group->id, "\x63\x61\x6e\137\142\145\137\x64\x65\154\145\x74\145\144" => true, "\x74\x79\160\x65" => null), array("\x6e\x61\x6d\145\137\x74\x72\x61\156\163\154\x61\164\x69\x6f\156\x5f\x6b\145\x79" => trans_key("\x65\x78\x2d\142\x6f\x79\x66\x72\x69\x65\x6e\x64"), "\156\141\155\145\137\x72\x65\x76\x65\162\163\x65\x5f\162\x65\x6c\141\164\151\x6f\156\163\x68\x69\x70\137\164\x72\141\x6e\x73\x6c\x61\164\x69\x6f\156\x5f\153\x65\171" => trans_key("\145\x78\55\x62\157\171\x66\162\151\145\156\x64"), "\x72\145\154\141\x74\151\x6f\156\163\x68\x69\x70\137\147\162\157\165\160\x5f\x74\x79\160\145\137\151\144" => $group->id, "\143\x61\x6e\x5f\142\145\x5f\144\x65\154\145\164\x65\x64" => true, "\x74\171\160\145" => null))); $group = (new CreateRelationshipGroupType())->execute(array("\141\x63\x63\157\x75\x6e\x74\137\151\144" => $this->author->account_id, "\141\165\x74\150\157\162\137\151\144" => $this->author->id, "\x6e\141\x6d\145\x5f\x74\162\141\x6e\163\154\x61\x74\151\x6f\156\137\x6b\x65\x79" => trans_key("\106\x61\155\151\x6c\171"), "\143\141\156\137\x62\145\137\x64\145\x6c\145\164\145\144" => false, "\164\x79\x70\x65" => RelationshipGroupType::TYPE_FAMILY)); DB::table("\x72\x65\x6c\141\164\x69\157\156\x73\x68\x69\x70\x5f\164\x79\160\x65\x73")->insert(array(array("\x6e\x61\155\145\x5f\x74\x72\141\x6e\x73\x6c\141\x74\x69\x6f\156\x5f\153\x65\x79" => trans_key("\160\141\162\145\x6e\x74"), "\x6e\x61\x6d\x65\x5f\x72\x65\166\145\x72\x73\x65\x5f\x72\x65\154\141\x74\x69\157\156\163\x68\151\160\x5f\164\162\x61\x6e\x73\154\x61\164\x69\157\x6e\137\x6b\145\x79" => trans_key("\143\x68\x69\x6c\144"), "\162\145\154\141\x74\151\x6f\x6e\x73\150\x69\x70\137\x67\162\x6f\x75\160\137\164\x79\x70\x65\137\x69\144" => $group->id, "\143\141\x6e\137\x62\x65\x5f\x64\x65\x6c\x65\164\x65\144" => false, "\164\x79\160\x65" => RelationshipType::TYPE_CHILD), array("\x6e\141\155\x65\x5f\x74\162\x61\x6e\163\154\x61\164\151\157\x6e\137\153\x65\171" => trans_key("\x62\x72\157\164\150\x65\162\x2f\x73\x69\163\x74\x65\x72"), "\x6e\x61\x6d\145\137\x72\145\x76\145\x72\163\x65\137\x72\x65\154\x61\x74\151\x6f\x6e\x73\x68\x69\160\x5f\164\162\141\156\163\154\141\x74\x69\x6f\x6e\137\153\145\171" => trans_key("\x62\162\157\x74\150\x65\x72\x2f\x73\x69\163\164\x65\x72"), "\x72\145\154\141\x74\151\157\156\x73\150\151\160\x5f\147\162\157\x75\160\137\x74\x79\160\145\137\x69\x64" => $group->id, "\x63\x61\156\x5f\x62\145\137\144\145\x6c\145\164\145\144" => true, "\164\x79\160\145" => null), array("\x6e\141\155\x65\137\x74\x72\141\156\x73\x6c\x61\164\x69\157\156\137\x6b\145\x79" => trans_key("\147\x72\141\x6e\144\40\x70\x61\x72\145\156\164"), "\156\x61\x6d\145\137\x72\145\x76\x65\162\163\145\x5f\x72\x65\x6c\141\164\x69\x6f\x6e\163\150\x69\x70\x5f\164\162\141\156\x73\154\141\164\x69\x6f\156\137\153\145\x79" => trans_key("\147\162\141\x6e\x64\x20\143\x68\151\x6c\144"), "\162\145\x6c\141\164\x69\x6f\156\163\150\151\x70\x5f\x67\x72\157\x75\x70\137\x74\171\x70\x65\x5f\x69\x64" => $group->id, "\143\141\156\x5f\142\x65\137\144\x65\x6c\x65\164\x65\144" => true, "\164\171\160\145" => null), array("\x6e\141\155\145\x5f\164\162\x61\x6e\163\154\141\x74\151\x6f\x6e\137\153\145\171" => trans_key("\x75\156\x63\x6c\145\x2f\x61\x75\x6e\x74"), "\x6e\x61\155\145\137\x72\x65\x76\145\162\163\x65\137\x72\x65\x6c\x61\x74\151\x6f\x6e\163\x68\151\160\x5f\164\x72\141\x6e\x73\x6c\141\164\151\157\x6e\x5f\153\x65\171" => trans_key("\x6e\145\x70\x68\145\x77\x2f\156\151\x65\143\145"), "\162\x65\154\x61\164\151\157\x6e\x73\150\x69\x70\137\147\x72\157\165\x70\x5f\164\x79\160\x65\137\x69\x64" => $group->id, "\143\141\x6e\x5f\x62\x65\x5f\x64\145\x6c\145\x74\x65\x64" => true, "\x74\171\x70\145" => null), array("\156\x61\155\x65\137\x74\x72\141\x6e\163\x6c\x61\x74\x69\x6f\x6e\137\153\145\x79" => trans_key("\143\x6f\165\x73\151\x6e"), "\x6e\141\x6d\x65\137\x72\x65\166\145\x72\x73\x65\x5f\162\145\x6c\x61\x74\x69\157\156\163\150\151\160\x5f\x74\162\141\156\x73\154\141\x74\x69\x6f\156\137\x6b\145\171" => trans_key("\x63\x6f\x75\163\151\156"), "\162\145\x6c\x61\164\151\x6f\156\x73\150\x69\160\x5f\147\162\x6f\165\160\x5f\164\x79\160\145\x5f\151\144" => $group->id, "\x63\141\x6e\x5f\142\145\137\144\145\x6c\145\x74\145\144" => true, "\164\171\x70\145" => null), array("\156\x61\155\145\x5f\x74\x72\x61\x6e\x73\x6c\141\164\151\157\156\137\x6b\x65\171" => trans_key("\147\157\x64\x70\x61\x72\x65\x6e\x74"), "\156\141\x6d\x65\137\162\145\x76\x65\x72\x73\145\137\x72\145\154\141\164\x69\157\156\163\150\151\x70\137\164\162\x61\156\163\154\141\164\x69\157\x6e\x5f\153\x65\x79" => trans_key("\147\x6f\144\x63\150\x69\x6c\x64"), "\162\145\154\141\164\x69\157\x6e\163\150\x69\160\x5f\x67\162\157\165\160\137\x74\x79\x70\x65\137\x69\x64" => $group->id, "\x63\141\x6e\x5f\x62\x65\137\x64\145\154\145\x74\x65\144" => true, "\x74\x79\160\x65" => null))); $group = (new CreateRelationshipGroupType())->execute(array("\x61\x63\143\x6f\x75\x6e\x74\x5f\151\144" => $this->author->account_id, "\141\165\x74\x68\157\x72\137\x69\x64" => $this->author->id, "\156\141\155\145\137\x74\162\x61\x6e\x73\x6c\141\x74\x69\157\x6e\x5f\x6b\x65\171" => trans_key("\106\162\151\145\x6e\x64"), "\x63\x61\x6e\137\142\x65\137\144\145\154\145\x74\x65\x64" => true)); DB::table("\162\145\x6c\x61\164\151\157\x6e\x73\x68\151\x70\137\x74\171\x70\145\163")->insert(array(array("\x6e\141\155\145\x5f\x74\162\x61\156\163\x6c\x61\164\151\157\x6e\x5f\153\x65\x79" => trans_key("\146\162\151\x65\x6e\144"), "\156\x61\155\145\x5f\162\x65\166\x65\x72\x73\145\137\162\x65\154\141\164\x69\x6f\x6e\163\150\x69\x70\x5f\164\x72\x61\x6e\x73\x6c\141\164\151\x6f\156\x5f\153\145\x79" => trans_key("\x66\162\151\x65\156\144"), "\x72\x65\x6c\141\164\x69\x6f\156\163\150\x69\160\137\147\162\x6f\x75\x70\x5f\x74\171\x70\145\137\151\x64" => $group->id, "\x63\x61\x6e\x5f\142\x65\x5f\x64\x65\154\145\x74\145\144" => true, "\x74\x79\160\x65" => null), array("\x6e\x61\x6d\x65\x5f\x74\162\x61\156\163\x6c\x61\164\x69\157\x6e\x5f\x6b\x65\x79" => trans_key("\142\x65\163\164\40\146\x72\151\145\156\144"), "\156\141\155\145\137\x72\145\x76\x65\162\163\145\137\x72\x65\154\x61\164\x69\x6f\156\163\150\x69\160\137\x74\162\141\156\x73\154\141\x74\x69\157\156\137\153\145\171" => trans_key("\x62\145\163\164\40\146\162\x69\145\156\x64"), "\x72\x65\x6c\x61\x74\151\157\156\163\x68\151\x70\137\147\162\157\x75\160\137\x74\171\x70\x65\x5f\x69\144" => $group->id, "\143\141\156\137\x62\145\137\x64\145\x6c\x65\164\x65\144" => true, "\x74\171\x70\x65" => null))); $group = (new CreateRelationshipGroupType())->execute(array("\141\x63\143\157\165\156\164\137\x69\x64" => $this->author->account_id, "\x61\x75\164\150\157\162\x5f\151\144" => $this->author->id, "\156\141\x6d\145\x5f\164\x72\x61\156\x73\154\x61\164\x69\x6f\156\x5f\x6b\x65\x79" => trans_key("\x57\x6f\x72\x6b"), "\x63\141\x6e\x5f\142\x65\x5f\x64\145\x6c\145\x74\x65\144" => true)); DB::table("\162\145\x6c\x61\x74\x69\x6f\156\x73\150\x69\160\x5f\164\171\160\145\x73")->insert(array(array("\156\141\155\145\x5f\164\x72\141\x6e\x73\x6c\x61\164\x69\157\156\137\x6b\145\x79" => trans_key("\143\157\x6c\154\145\x61\147\165\145"), "\x6e\x61\x6d\145\x5f\162\145\166\x65\162\163\x65\x5f\162\x65\x6c\141\x74\151\x6f\156\163\150\151\x70\x5f\x74\x72\141\x6e\163\x6c\x61\x74\x69\x6f\156\x5f\153\145\x79" => trans_key("\x63\x6f\154\154\145\x61\x67\165\145"), "\x72\x65\x6c\141\164\x69\x6f\156\x73\150\151\x70\x5f\147\x72\x6f\165\160\x5f\x74\171\x70\145\137\x69\144" => $group->id, "\143\x61\x6e\x5f\x62\x65\x5f\144\x65\154\145\x74\x65\x64" => true, "\x74\x79\160\x65" => null), array("\156\x61\x6d\145\x5f\x74\162\x61\x6e\163\x6c\x61\x74\151\157\156\x5f\x6b\x65\x79" => trans_key("\x73\x75\x62\x6f\162\x64\151\x6e\141\164\145"), "\156\x61\155\x65\x5f\162\x65\x76\x65\162\x73\145\137\x72\x65\x6c\x61\164\x69\157\x6e\x73\150\151\160\137\164\162\x61\156\x73\x6c\141\164\x69\157\x6e\x5f\x6b\x65\x79" => trans_key("\x62\157\163\163"), "\x72\145\154\x61\x74\x69\x6f\156\163\150\x69\x70\x5f\x67\x72\157\x75\160\137\164\171\160\x65\137\151\144" => $group->id, "\x63\x61\156\137\142\145\137\x64\145\154\145\x74\145\x64" => true, "\x74\171\160\145" => null), array("\x6e\x61\x6d\145\x5f\164\x72\x61\156\163\x6c\x61\164\x69\157\x6e\x5f\153\145\x79" => trans_key("\155\x65\x6e\x74\157\162"), "\156\x61\155\145\x5f\x72\x65\x76\145\162\163\x65\x5f\162\145\x6c\x61\x74\151\157\x6e\x73\x68\151\160\x5f\164\x72\x61\156\x73\x6c\141\164\151\x6f\156\x5f\153\145\171" => trans_key("\x70\x72\157\164\145\147\x65"), "\162\145\x6c\x61\x74\x69\157\x6e\163\x68\x69\x70\137\147\162\157\x75\x70\x5f\x74\x79\160\145\137\x69\144" => $group->id, "\x63\x61\156\x5f\142\145\137\x64\145\x6c\145\164\x65\x64" => true, "\164\171\x70\145" => null))); } private function addAddressTypes() : void { $addresses = collect(array(trans_key("\xf0\237\x8f\241\40\x48\157\x6d\x65"), trans_key("\xf0\237\x8f\240\40\123\145\x63\157\x6e\144\x61\x72\171\40\162\x65\163\x69\144\145\x6e\143\x65"), trans_key("\360\x9f\x8f\242\x20\x57\157\x72\x6b"), trans_key("\xf0\237\214\263\40\103\x68\x61\154\x65\x74"))); foreach ($addresses as $address) { (new CreateAddressType())->execute(array("\141\x63\143\x6f\165\156\164\x5f\x69\144" => $this->author->account_id, "\x61\x75\x74\x68\x6f\162\x5f\151\144" => $this->author->id, "\x6e\141\155\145\x5f\164\162\x61\156\163\x6c\141\164\x69\157\x6e\137\153\145\x79" => $address)); } } private function addCallReasonTypes() : void { $type = (new CreateCallReasonType())->execute(array("\x61\143\x63\x6f\165\156\x74\x5f\x69\x64" => $this->author->account_id, "\141\x75\164\150\157\162\x5f\x69\144" => $this->author->id, "\154\141\x62\x65\x6c\137\164\162\x61\x6e\x73\x6c\141\164\151\157\x6e\x5f\x6b\145\x79" => trans_key("\120\x65\162\163\157\156\141\154"))); (new CreateCallReason())->execute(array("\141\x63\143\157\165\156\164\x5f\151\x64" => $this->author->account_id, "\x61\x75\x74\x68\157\162\x5f\151\144" => $this->author->id, "\143\141\154\x6c\x5f\162\x65\x61\x73\157\x6e\x5f\x74\x79\160\x65\137\x69\144" => $type->id, "\154\141\x62\x65\x6c\x5f\164\162\141\156\x73\x6c\141\x74\151\x6f\156\x5f\x6b\145\171" => trans_key("\106\x6f\162\x20\141\x64\166\x69\x63\145"))); (new CreateCallReason())->execute(array("\141\143\143\157\x75\156\164\137\151\144" => $this->author->account_id, "\x61\x75\164\150\157\162\x5f\x69\144" => $this->author->id, "\143\141\x6c\154\137\x72\145\x61\x73\157\156\137\x74\171\x70\145\137\151\x64" => $type->id, "\154\x61\x62\x65\154\x5f\x74\162\141\x6e\163\x6c\141\x74\151\x6f\x6e\137\x6b\x65\x79" => trans_key("\x4a\x75\163\x74\x20\x74\157\40\163\x61\x79\40\x68\145\154\154\x6f"))); (new CreateCallReason())->execute(array("\141\143\143\x6f\165\x6e\164\x5f\x69\x64" => $this->author->account_id, "\x61\x75\164\x68\x6f\162\137\151\x64" => $this->author->id, "\x63\x61\x6c\x6c\137\162\145\x61\163\157\x6e\137\x74\x79\160\x65\x5f\151\x64" => $type->id, "\x6c\141\142\x65\x6c\137\x74\162\x61\156\x73\x6c\x61\164\151\157\156\137\153\x65\x79" => trans_key("\124\x6f\40\x73\145\x65\40\151\x66\40\164\x68\145\x79\x20\156\x65\x65\144\x20\x61\x6e\x79\x74\150\x69\x6e\x67"))); (new CreateCallReason())->execute(array("\x61\x63\x63\157\165\156\x74\x5f\x69\x64" => $this->author->account_id, "\x61\x75\164\x68\x6f\x72\x5f\151\144" => $this->author->id, "\x63\x61\154\x6c\x5f\x72\x65\141\x73\x6f\156\137\164\x79\x70\x65\x5f\x69\144" => $type->id, "\154\141\142\x65\x6c\137\164\x72\x61\x6e\x73\154\141\x74\x69\157\x6e\x5f\x6b\x65\171" => trans_key("\117\x75\164\40\157\x66\40\x72\x65\x73\160\145\x63\164\40\141\x6e\x64\40\x61\160\x70\162\145\x63\x69\x61\164\x69\157\x6e"))); (new CreateCallReason())->execute(array("\x61\x63\143\x6f\x75\156\x74\137\x69\144" => $this->author->account_id, "\x61\x75\164\x68\x6f\162\x5f\151\144" => $this->author->id, "\x63\x61\x6c\154\137\162\x65\141\x73\x6f\x6e\137\164\171\x70\x65\x5f\x69\x64" => $type->id, "\154\141\x62\145\154\x5f\x74\162\x61\x6e\163\x6c\141\x74\151\x6f\x6e\137\153\x65\x79" => trans_key("\x54\157\40\150\x65\141\162\40\x74\x68\145\x69\162\40\x73\x74\x6f\x72\171"))); $type = (new CreateCallReasonType())->execute(array("\141\x63\143\157\x75\156\164\x5f\x69\144" => $this->author->account_id, "\x61\x75\164\150\x6f\x72\x5f\151\x64" => $this->author->id, "\x6c\141\x62\x65\x6c\137\x74\162\x61\156\x73\x6c\x61\164\151\157\156\x5f\153\x65\171" => trans_key("\102\x75\163\x69\156\145\163\163"))); (new CreateCallReason())->execute(array("\x61\143\143\157\x75\156\164\x5f\151\x64" => $this->author->account_id, "\141\x75\x74\x68\x6f\x72\x5f\x69\x64" => $this->author->id, "\x63\141\x6c\154\x5f\162\145\141\x73\x6f\x6e\x5f\x74\x79\160\x65\x5f\x69\144" => $type->id, "\x6c\x61\x62\x65\154\137\x74\162\x61\156\163\154\x61\164\x69\157\156\x5f\x6b\x65\171" => trans_key("\x44\151\163\x63\165\163\x73\40\x72\x65\x63\x65\156\x74\x20\x70\x75\162\x63\150\141\163\145\163"))); (new CreateCallReason())->execute(array("\x61\143\143\157\x75\x6e\x74\137\x69\x64" => $this->author->account_id, "\x61\165\164\x68\x6f\162\x5f\151\x64" => $this->author->id, "\143\141\x6c\x6c\137\x72\145\x61\x73\x6f\156\137\x74\171\160\x65\137\x69\x64" => $type->id, "\154\x61\x62\145\154\x5f\164\162\141\x6e\163\154\x61\164\x69\157\156\x5f\x6b\x65\x79" => trans_key("\x44\151\163\x63\x75\x73\x73\x20\160\x61\162\x74\156\145\162\x73\x68\151\x70"))); } private function addContactInformation() : void { $information = (new CreateContactInformationType())->execute(array("\141\x63\x63\157\165\x6e\164\x5f\151\144" => $this->author->account_id, "\x61\x75\164\150\x6f\x72\x5f\151\x64" => $this->author->id, "\x6e\141\x6d\145\137\164\162\x61\x6e\x73\154\x61\x74\151\157\x6e\x5f\153\x65\x79" => trans_key("\x45\x6d\141\151\x6c\40\x61\x64\144\162\x65\163\163"), "\x70\162\157\164\157\143\x6f\x6c" => "\155\x61\x69\x6c\x74\x6f\72")); $information->can_be_deleted = false; $information->type = "\x65\x6d\141\x69\154"; $information->save(); $information = (new CreateContactInformationType())->execute(array("\141\143\143\x6f\165\x6e\164\x5f\151\x64" => $this->author->account_id, "\x61\165\x74\x68\157\162\x5f\x69\x64" => $this->author->id, "\156\141\x6d\145\x5f\164\x72\x61\156\x73\x6c\141\164\x69\157\x6e\137\x6b\145\x79" => trans_key("\x50\150\157\156\145"), "\160\162\157\164\x6f\x63\x6f\154" => "\164\145\x6c\72")); $information->can_be_deleted = false; $information->type = "\160\150\x6f\156\145"; $information->save(); (new CreateContactInformationType())->execute(array("\141\x63\143\x6f\165\x6e\x74\x5f\x69\x64" => $this->author->account_id, "\x61\x75\164\x68\157\162\137\151\x64" => $this->author->id, "\156\141\155\145" => "\106\141\x63\x65\x62\157\157\153")); (new CreateContactInformationType())->execute(array("\x61\143\143\157\x75\156\164\137\151\144" => $this->author->account_id, "\x61\x75\x74\150\157\162\x5f\151\x64" => $this->author->id, "\156\x61\155\145" => "\124\167\151\164\164\145\162")); (new CreateContactInformationType())->execute(array("\x61\x63\x63\157\x75\x6e\x74\x5f\151\x64" => $this->author->account_id, "\x61\165\x74\150\x6f\162\137\151\144" => $this->author->id, "\x6e\141\x6d\x65" => "\x57\150\141\164\163\x61\x70\160")); (new CreateContactInformationType())->execute(array("\141\143\x63\157\165\156\x74\137\x69\144" => $this->author->account_id, "\x61\x75\164\150\157\162\137\x69\144" => $this->author->id, "\156\x61\x6d\145" => "\x54\x65\x6c\145\147\x72\141\x6d")); (new CreateContactInformationType())->execute(array("\x61\143\x63\157\x75\156\x74\137\151\x64" => $this->author->account_id, "\x61\x75\x74\x68\157\x72\137\x69\144" => $this->author->id, "\156\141\155\145" => "\110\141\x6e\147\157\165\164\x73")); (new CreateContactInformationType())->execute(array("\x61\x63\x63\157\165\156\x74\137\151\144" => $this->author->account_id, "\x61\x75\164\150\x6f\x72\137\151\144" => $this->author->id, "\x6e\x61\155\145" => "\x4c\151\156\x6b\145\x64\151\x6e")); (new CreateContactInformationType())->execute(array("\141\143\x63\x6f\165\x6e\164\x5f\x69\144" => $this->author->account_id, "\141\x75\164\x68\157\x72\x5f\x69\x64" => $this->author->id, "\x6e\141\x6d\145" => "\111\x6e\163\164\x61\147\x72\141\x6d")); } private function addPetCategories() : void { $categories = collect(array(trans_key("\x44\157\147"), trans_key("\103\141\x74"), trans_key("\102\151\162\x64"), trans_key("\x46\151\163\x68"), trans_key("\x53\x6d\x61\x6c\154\x20\x61\156\x69\155\141\x6c"), trans_key("\x48\141\155\163\x74\x65\162"), trans_key("\110\157\x72\163\145"), trans_key("\x52\141\x62\142\x69\164"), trans_key("\122\x61\164"), trans_key("\x52\145\x70\x74\x69\154\145"))); foreach ($categories as $category) { (new CreatePetCategory())->execute(array("\x61\143\143\x6f\165\156\x74\x5f\x69\144" => $this->author->account_id, "\x61\165\x74\150\x6f\x72\137\x69\x64" => $this->author->id, "\x6e\141\x6d\145\137\x74\x72\x61\x6e\x73\154\x61\x74\151\157\x6e\137\153\x65\171" => $category)); } } private function addEmotions() : void { DB::table("\x65\x6d\157\164\x69\x6f\x6e\163")->insert(array(array("\x61\143\x63\x6f\x75\x6e\164\x5f\151\x64" => $this->author->account_id, "\x6e\x61\x6d\x65\137\164\x72\141\x6e\163\x6c\141\164\151\x6f\x6e\x5f\x6b\145\x79" => trans_key("\360\237\x98\241\40\116\145\147\141\x74\151\166\x65"), "\x74\171\160\x65" => Emotion::TYPE_NEGATIVE), array("\141\x63\x63\157\165\156\164\137\x69\x64" => $this->author->account_id, "\156\141\x6d\x65\x5f\x74\162\141\156\163\x6c\x61\164\x69\x6f\x6e\x5f\153\145\x79" => trans_key("\360\237\x98\xb6\342\200\x8d\360\x9f\214\xab\357\270\217\40\116\145\165\164\162\x61\154"), "\x74\171\x70\145" => Emotion::TYPE_NEUTRAL), array("\x61\x63\x63\157\165\156\164\x5f\x69\x64" => $this->author->account_id, "\x6e\141\155\x65\137\164\162\141\156\x73\154\141\164\x69\157\x6e\137\x6b\145\171" => trans_key("\360\x9f\x98\201\40\x50\157\x73\x69\x74\x69\166\145"), "\x74\171\x70\145" => Emotion::TYPE_POSITIVE))); } private function addGiftOccasions() : void { DB::table("\x67\151\x66\x74\x5f\157\143\143\141\163\151\x6f\156\163")->insert(array(array("\141\x63\x63\x6f\x75\156\164\137\x69\144" => $this->author->account_id, "\154\x61\x62\145\x6c\x5f\164\x72\141\x6e\163\x6c\x61\164\x69\157\156\137\x6b\x65\171" => trans_key("\102\x69\162\164\x68\x64\141\x79"), "\x70\x6f\163\151\x74\151\x6f\x6e" => 1), array("\x61\143\143\157\165\156\x74\x5f\x69\x64" => $this->author->account_id, "\154\x61\142\x65\x6c\137\x74\162\x61\x6e\x73\154\141\164\151\157\x6e\x5f\x6b\145\171" => trans_key("\101\x6e\156\151\x76\145\x72\x73\141\162\171"), "\160\157\163\151\164\151\157\156" => 2), array("\141\143\x63\157\165\x6e\164\137\151\x64" => $this->author->account_id, "\154\141\x62\145\154\x5f\164\x72\x61\156\x73\154\141\x74\151\x6f\156\x5f\153\145\x79" => trans_key("\103\150\162\151\x73\x74\x6d\141\x73"), "\x70\x6f\163\151\x74\x69\x6f\156" => 3), array("\141\x63\x63\157\165\156\164\137\151\x64" => $this->author->account_id, "\154\x61\142\145\154\137\164\x72\x61\156\x73\x6c\141\164\x69\157\x6e\137\x6b\145\171" => trans_key("\112\x75\163\x74\x20\x62\x65\x63\x61\165\163\145"), "\x70\157\163\x69\164\151\157\156" => 4), array("\x61\x63\x63\x6f\x75\x6e\x74\137\151\144" => $this->author->account_id, "\154\x61\142\145\x6c\x5f\x74\162\141\156\163\154\141\164\x69\157\x6e\137\153\145\x79" => trans_key("\127\145\144\144\x69\x6e\147"), "\x70\157\163\151\164\151\157\156" => 5))); } private function addGiftStates() : void { DB::table("\x67\x69\x66\x74\x5f\163\164\141\164\x65\x73")->insert(array(array("\x61\143\143\157\x75\x6e\164\137\x69\144" => $this->author->account_id, "\x6c\x61\x62\x65\x6c\137\164\162\x61\x6e\x73\154\141\x74\x69\x6f\156\x5f\153\x65\171" => trans_key("\111\x64\145\141"), "\x70\x6f\x73\151\x74\x69\157\156" => 1), array("\141\x63\143\157\165\x6e\x74\137\151\144" => $this->author->account_id, "\154\x61\142\x65\x6c\137\x74\x72\141\x6e\x73\x6c\x61\x74\151\157\x6e\x5f\153\x65\171" => trans_key("\123\145\141\x72\x63\x68\x65\144"), "\x70\x6f\163\151\164\x69\x6f\x6e" => 2), array("\x61\143\143\x6f\165\156\x74\x5f\x69\x64" => $this->author->account_id, "\x6c\141\142\145\x6c\x5f\x74\162\x61\156\163\154\x61\x74\x69\157\156\x5f\x6b\x65\x79" => trans_key("\106\157\x75\x6e\144"), "\160\x6f\x73\151\x74\x69\157\x6e" => 3), array("\x61\x63\x63\157\x75\156\x74\x5f\x69\144" => $this->author->account_id, "\x6c\x61\142\x65\x6c\x5f\x74\x72\141\x6e\163\154\141\x74\151\157\156\x5f\x6b\145\171" => trans_key("\102\157\165\147\x68\164"), "\160\157\163\151\x74\x69\157\156" => 4), array("\141\143\143\x6f\x75\156\164\x5f\x69\x64" => $this->author->account_id, "\x6c\141\142\x65\x6c\137\164\x72\x61\x6e\163\154\141\x74\151\x6f\156\x5f\153\145\x79" => trans_key("\x4f\146\146\145\x72\x65\144"), "\160\157\x73\151\x74\x69\157\156" => 5))); } private function addPostTemplates() : void { $postTemplate = (new CreatePostTemplate())->execute(array("\141\x63\143\157\165\156\x74\x5f\x69\144" => $this->author->account_id, "\141\165\x74\150\157\x72\137\151\x64" => $this->author->id, "\154\141\142\x65\154\137\164\x72\141\156\163\x6c\x61\x74\151\157\156\x5f\x6b\145\x79" => trans_key("\122\x65\x67\x75\154\x61\162\x20\x70\x6f\163\164"), "\x63\141\156\x5f\x62\145\137\144\145\154\145\164\x65\144" => false)); (new CreatePostTemplateSection())->execute(array("\141\143\x63\x6f\x75\x6e\164\x5f\151\144" => $this->author->account_id, "\141\165\x74\150\157\x72\x5f\x69\144" => $this->author->id, "\160\x6f\163\164\137\164\145\155\160\x6c\x61\164\x65\x5f\151\144" => $postTemplate->id, "\x6c\141\x62\x65\x6c\x5f\x74\162\x61\x6e\163\154\141\164\x69\x6f\x6e\137\153\145\171" => trans_key("\x43\157\156\x74\x65\x6e\x74"), "\143\x61\x6e\x5f\x62\x65\x5f\144\145\x6c\x65\x74\x65\x64" => false)); $postTemplate = (new CreatePostTemplate())->execute(array("\141\x63\143\x6f\165\x6e\x74\137\x69\144" => $this->author->account_id, "\x61\x75\x74\x68\157\x72\x5f\x69\144" => $this->author->id, "\154\141\x62\145\154\137\x74\162\x61\156\163\154\x61\164\151\157\x6e\137\x6b\x65\x79" => trans_key("\x49\x6e\x73\x70\151\162\141\164\151\x6f\x6e\x61\154\x20\160\157\x73\x74"), "\x63\141\156\137\142\145\137\x64\145\x6c\x65\x74\145\x64" => true)); (new CreatePostTemplateSection())->execute(array("\x61\143\x63\157\165\x6e\x74\x5f\151\x64" => $this->author->account_id, "\x61\165\164\150\x6f\162\x5f\151\x64" => $this->author->id, "\x70\157\x73\x74\137\164\145\x6d\x70\x6c\x61\x74\x65\137\151\144" => $postTemplate->id, "\x6c\141\x62\145\x6c\x5f\164\x72\141\156\163\154\x61\x74\x69\x6f\x6e\x5f\153\145\171" => trans_key("\111\x20\141\x6d\40\x67\162\141\164\145\146\165\x6c\x20\146\157\x72"), "\143\x61\x6e\137\x62\145\137\x64\x65\154\x65\164\145\x64" => true)); (new CreatePostTemplateSection())->execute(array("\141\x63\143\x6f\165\x6e\x74\137\x69\x64" => $this->author->account_id, "\141\165\164\x68\157\162\x5f\151\144" => $this->author->id, "\160\x6f\x73\x74\x5f\164\x65\155\x70\x6c\x61\164\145\x5f\151\x64" => $postTemplate->id, "\154\x61\142\145\x6c\x5f\x74\x72\x61\x6e\163\154\x61\x74\151\157\156\x5f\153\145\171" => trans_key("\x44\141\x69\154\x79\x20\141\x66\146\151\162\x6d\x61\x74\151\x6f\156"), "\143\141\156\x5f\142\x65\137\144\x65\154\x65\x74\x65\x64" => true)); (new CreatePostTemplateSection())->execute(array("\141\143\x63\x6f\165\x6e\164\x5f\151\x64" => $this->author->account_id, "\141\x75\164\150\x6f\x72\137\x69\x64" => $this->author->id, "\160\157\x73\x74\137\164\x65\x6d\x70\x6c\x61\x74\x65\x5f\151\144" => $postTemplate->id, "\154\141\x62\145\154\137\x74\x72\x61\x6e\163\154\x61\x74\x69\157\156\137\x6b\145\171" => trans_key("\x48\157\x77\40\x63\x6f\x75\x6c\144\x20\111\x20\150\x61\166\x65\x20\x64\x6f\156\145\40\x74\150\x69\x73\x20\x64\x61\x79\40\142\145\x74\x74\145\x72\77"), "\143\141\156\137\x62\145\x5f\x64\x65\154\x65\x74\145\x64" => true)); (new CreatePostTemplateSection())->execute(array("\x61\x63\x63\x6f\x75\x6e\x74\137\x69\144" => $this->author->account_id, "\x61\x75\x74\x68\x6f\162\137\x69\x64" => $this->author->id, "\160\157\x73\x74\x5f\164\x65\x6d\x70\x6c\141\164\x65\137\151\144" => $postTemplate->id, "\154\141\x62\145\154\x5f\164\x72\141\x6e\163\154\141\164\x69\x6f\156\137\153\145\171" => trans_key("\127\x68\x61\164\x20\167\157\165\154\x64\40\155\141\x6b\145\40\x74\x6f\x64\x61\171\x20\x67\162\145\x61\164\77"), "\143\x61\x6e\x5f\142\x65\x5f\144\x65\x6c\x65\164\x65\x64" => true)); (new CreatePostTemplateSection())->execute(array("\x61\x63\x63\x6f\x75\x6e\x74\137\151\144" => $this->author->account_id, "\x61\x75\164\x68\x6f\x72\x5f\x69\144" => $this->author->id, "\x70\x6f\163\164\x5f\164\x65\x6d\x70\x6c\x61\x74\x65\x5f\x69\x64" => $postTemplate->id, "\x6c\141\142\145\x6c\137\x74\x72\141\x6e\x73\154\141\164\x69\x6f\156\137\x6b\145\171" => trans_key("\124\x68\162\x65\145\x20\164\x68\151\x6e\x67\x73\40\164\150\x61\x74\40\x68\141\x70\x70\145\x6e\145\144\40\164\157\x64\141\x79"), "\143\141\x6e\x5f\x62\145\x5f\144\145\x6c\x65\x74\x65\x64" => true)); } private function addReligions() : void { DB::table("\x72\145\154\151\147\151\157\x6e\x73")->insert(array(array("\x61\x63\x63\x6f\165\156\164\137\x69\x64" => $this->author->account_id, "\x74\162\x61\x6e\x73\154\x61\x74\x69\x6f\x6e\137\x6b\x65\x79" => trans_key("\x43\x68\x72\x69\x73\x74\x69\141\156"), "\x70\x6f\x73\x69\164\x69\x6f\x6e" => 1), array("\x61\143\x63\157\x75\156\164\137\x69\144" => $this->author->account_id, "\164\x72\141\x6e\163\x6c\141\164\x69\x6f\156\x5f\x6b\145\x79" => trans_key("\115\165\163\154\151\155"), "\160\157\163\x69\164\x69\157\156" => 2), array("\x61\143\x63\x6f\165\x6e\164\137\x69\x64" => $this->author->account_id, "\x74\x72\141\x6e\163\x6c\x61\x74\x69\157\x6e\137\x6b\145\171" => trans_key("\110\151\156\x64\165\151\x73\164"), "\160\157\x73\x69\x74\151\157\156" => 3), array("\141\143\143\x6f\x75\x6e\x74\x5f\151\144" => $this->author->account_id, "\164\162\141\156\163\x6c\x61\x74\151\157\156\137\153\x65\x79" => trans_key("\102\165\144\x64\x68\151\x73\164"), "\x70\x6f\163\x69\164\x69\x6f\x6e" => 4), array("\x61\x63\x63\x6f\x75\156\x74\137\151\x64" => $this->author->account_id, "\164\x72\141\x6e\163\x6c\141\164\151\x6f\156\137\x6b\x65\171" => trans_key("\x53\150\x69\x6e\164\157\x69\x73\164"), "\x70\x6f\x73\151\x74\151\x6f\x6e" => 5), array("\141\x63\143\157\165\x6e\164\x5f\x69\144" => $this->author->account_id, "\164\162\x61\156\163\154\141\164\x69\157\156\137\153\145\x79" => trans_key("\124\141\157\x69\x73\x74"), "\160\x6f\x73\151\x74\x69\157\156" => 6), array("\141\143\143\157\x75\156\164\137\151\144" => $this->author->account_id, "\x74\162\x61\x6e\163\x6c\141\164\151\157\156\x5f\x6b\145\x79" => trans_key("\123\x69\x6b\x68"), "\x70\x6f\163\151\x74\x69\157\156" => 7), array("\141\143\x63\x6f\165\156\x74\x5f\151\144" => $this->author->account_id, "\164\x72\x61\x6e\x73\154\x61\164\151\x6f\x6e\137\153\x65\x79" => trans_key("\112\x65\x77"), "\160\x6f\x73\151\164\151\x6f\156" => 8), array("\141\143\143\157\165\x6e\x74\137\151\144" => $this->author->account_id, "\164\162\x61\156\x73\154\141\x74\x69\157\x6e\x5f\153\x65\x79" => trans_key("\101\x74\150\x65\x69\x73\x74"), "\160\157\163\x69\164\151\x6f\156" => 9))); } }
Function Calls
None |
Stats
MD5 | 1425dc0a78a533a4e1efd1328143b7ed |
Eval Count | 0 |
Decode Time | 133 ms |