<?php
namespace Claromentis\Projects\Comments;

$GLOBALS["__65da1b1ec2d6" . "653e8a0ab7848e" . "536215"] = (@$GLOBALS["__65da1b1ec2d6653e8a0ab7848e53" . "6215"] ?: array()) + array("_6e38cb9e043a" . "07cd69a1711a6" . "704c62a" => base64_decode("cGFyZW50" . "X2lk"), "_a71dc9333b" . "d8ad95d55d6" . "624b477875f" => base64_decode("ZGF" . "0YQ" . "=="), "_692281770f7e78b4e16a657a42c2bc5" . "8" => base64_decode("cHJvamVjdHMudGFza19kaXN" . "jdXNzaW9uX3Bvc3RlZA=="), "_fa7526ba4ccc308fe6118644598" . "6ceaa" => base64_decode("cmVjaXBpZW50" . "cw=="), "_fee8ad32c" . "afd14e7ed8" . "9e05a85504" . "fb8" => base64_decode("cHJvamVjdHMudGFza19" . "yZXBseV9wb3N0ZWQ="));
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["__65da1b1" . "ec2d6653e" . "8a0ab7848" . "e536215"]["_6e38cb9e043a07cd6" . "9a1711a6704c62a"]) > 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["__65da1b1ec2d6653e8a" . "0ab7848e536215"]["_692281770" . "f7e78b4e16" . "a657a42c2b" . "c58"];
        }
        return $GLOBALS["__65da1b1ec2d6653e8a0ab" . "7848e536215"]["_fee8ad32cafd14e7" . "ed89e05a85504fb8"];
    }
    public function GetMessageParams()
    {
        return $this->_notification[$GLOBALS["__65da1b1ec2d66" . "53e8a0ab7848e53" . "6215"]["_a71dc933" . "3bd8ad95d" . "55d6624b4" . "77875f"]];
    }
    public function GetRecipients()
    {
        return $this->_notification[$GLOBALS["__65da1b1ec2d665" . "3e8a0ab7848e5362" . "15"]["_fa7526ba4ccc30" . "8fe61186445986c" . "eaa"]];
    }
    public function GetType()
    {
        return Notification::IM_TYPE_TASK;
    }
}