<?php

 namespace Informunity\Rest\App\Recordings; use Informunity\Interfaces\RestAPI; class UpdateActivityRecords implements RestAPI { var $REST; var $data; public function __construct($REST, $data = array()) { $this->REST = $REST; $this->data = $data; } public static function load($REST, $data = array()) { return new UpdateActivityRecords($REST, $data); } public function Run() { goto DinPn; DinPn: if (!empty($crmActivityID)) { goto M1eec; } goto s112R; dW6u6: U6Hiw: goto gjPGh; s112R: return array("\162\x65\163\x75\154\164" => "\116\117\40\x41\x63\164\x69\166\151\x74\x79\40\111\104"); goto DHxmC; GrA8C: $result["\x72\145\x73\165\x6c\x74"] = 0; goto dW6u6; OIHQi: foreach ($files as $file) { $filedata[] = array("\x66\x69\154\145\x44\x61\x74\141" => array(basename($file), base64_encode(file_get_contents($file)))); bcaAC: } goto doywq; yyZE2: if (!empty($result["\162\145\x73\x75\154\164"])) { goto U6Hiw; } goto GrA8C; O0Sgb: $result = $this->REST->query("\143\162\155\x2e\141\143\x74\x69\166\x69\x74\x79\56\165\x70\x64\141\164\145", array("\x49\104" => $crmActivityID, "\146\151\x65\154\x64\163" => array("\x46\111\114\x45\123" => $filedata))); goto yyZE2; DHxmC: M1eec: goto O2ezR; u94gc: tpKKu: goto O0Sgb; gjPGh: return $result; goto X_ybD; doywq: vfTQX: goto u94gc; O2ezR: if (empty($files)) { goto tpKKu; } goto OIHQi; X_ybD: } }
