<?php
namespace Claromentis\Projects\Comments;

$GLOBALS["__65da1b1ec2d6653e8" . "a0ab7848e536215"] = (@$GLOBALS["__65da1b1ec2" . "d6653e8a0ab7" . "848e536215"] ?: array()) + array("_fa7526ba4c" . "cc308fe6118" . "6445986ceaa" => base64_decode("cmVjaXBpZW" . "50cw=="), "_6e38cb9e043a07" . "cd69a1711a6704c" . "62a" => base64_decode("cGFyZW50X" . "2lk"), "_fee8ad32cafd14e7ed89e05a8" . "5504fb8" => base64_decode("cHJvamVjdHMu" . "dGFza19yZXBs" . "eV9wb3N0ZWQ="), "_692281770f7e78b4e16a65" . "7a42c2bc58" => base64_decode("cHJvamVjdHMudGFza19kaXNjdXNzaW9" . "uX3Bvc3RlZA=="), "_a71dc9333bd8ad9" . "5d55d6624b477875" . "f" => base64_decode("ZGF0" . "YQ=="));
use Claromentis\Comments\Model\Comment;
use Claromentis\Projects\Notification;
use Claromentis\Projects\Service\NotificationService;
class TaskCommentNotification
{
    private $_comment;
    private $_notification;
    public function __construct(Comment $_e8d840684607f6c2bbef523090642168, NotificationService $_88e3baed593bc10d4b7045181b4ac725)
    {
        $this->_comment = $_e8d840684607f6c2bbef523090642168;
        $_dadf790baf241afac942824c1e6e37c4 = NotificationService::TASK_DISCUSSION_POSTED;
        if ($_e8d840684607f6c2bbef523090642168->GetProperty($GLOBALS["__65da1b1ec2d6653" . "e8a0ab7848e536215"]["_6e38cb9" . "e043a07c" . "d69a1711" . "a6704c62" . "a"]) > 0) {
            $_dadf790baf241afac942824c1e6e37c4 = NotificationService::TASK_REPLY_POSTED;
        }
        $_99aaa03a11622e16e59bff0771ea8ef3 = new Notification($_dadf790baf241afac942824c1e6e37c4, $this->_comment);
        $this->_notification = $_88e3baed593bc10d4b7045181b4ac725->GetNotificationData($_99aaa03a11622e16e59bff0771ea8ef3);
    }
    public function GetTemplate()
    {
        if ($this->_comment->parent_id == 0) {
            return $GLOBALS["__65da1b1ec2d6653e8a0" . "ab7848e536215"]["_692281770f7e78b4e16a6" . "57a42c2bc58"];
        }
        return $GLOBALS["__65da1b1ec2d6653e8" . "a0ab7848e536215"]["_fee8ad32cafd14e7ed89e05a8550" . "4fb8"];
    }
    public function GetMessageParams()
    {
        return $this->_notification[$GLOBALS["__65da1b1ec2d66" . "53e8a0ab7848e53" . "6215"]["_a71dc9333bd8ad" . "95d55d6624b4778" . "75f"]];
    }
    public function GetRecipients()
    {
        return $this->_notification[$GLOBALS["__65da1b1ec2d6653e8a0ab784" . "8e536215"]["_fa7526ba4" . "ccc308fe61" . "186445986c" . "eaa"]];
    }
    public function GetType()
    {
        return Notification::IM_TYPE_TASK;
    }
}