package II63585d479fe372e866ef9b3e5f78106d; use strict 'vars'; use base qw/II674e2407e107271bcc76478050bc636a/; use II1d17f4bae0cdcee9878216ee8bd5ec5d; use IIf6c7e28bdd48eb29efc7b9362c0037a2; BEGIN{*II63585d479fe372e866ef9b3e5f78106d::IlIlIIIIIlllllIl=\%{pack('H6','06180f')^'CVY'};*II63585d479fe372e866ef9b3e5f78106d::lllIlIlIIIIIlIIl=\&{pack('H24','5221505900774379702b3b7c')^'?@97:M0AGICH'};$II63585d479fe372e866ef9b3e5f78106d::IIllIlIIlllIllll=pack('H18','01136d13610f7e1812')^'IG9C>G1KF';$II63585d479fe372e866ef9b3e5f78106d::lIIlIIIllllIlllI=pack('H12','7e1104021814')^'4XJNQW'};sub dbTable     { 'jin_helpticket_category' } BEGIN{*II63585d479fe372e866ef9b3e5f78106d::llllIllIIIlIIIII=\%{pack('H6','0f751d')^'J;K'};*II63585d479fe372e866ef9b3e5f78106d::lIlIlIlIllIllIIl=\&{pack('H24','542e28250d7a2078673b216d')^'9OAK7@S@PYYY'};$II63585d479fe372e866ef9b3e5f78106d::lIIlIllllIlllIlI=pack('H18','0e651b0a65001e111a')^'F1OZ:HQBN';$II63585d479fe372e866ef9b3e5f78106d::IIlIIllIlllIIlII=pack('H12','060c7f0c0b0d')^'LE1@BN'};sub dbFields    { qw/ owner_id title pipe_email staff_ids staff_signature subject_prefix membership_ids specusers_ids access_error / } BEGIN{*II63585d479fe372e866ef9b3e5f78106d::IIlllIIIlIlIllIl=\%{pack('H6','171867')^'RV1'};*II63585d479fe372e866ef9b3e5f78106d::llIIIlIIllIIIllI=\&{pack('H24','233551597b07317e0e37476c')^'NT87A=BF9U?X'};$II63585d479fe372e866ef9b3e5f78106d::IllIlllIllllIIIl=pack('H18','761f1a631e0d74646a')^'>KN3AE;7>';$II63585d479fe372e866ef9b3e5f78106d::lIIIIIllIIIlIIll=pack('H12','1b0a7d1f7273')^'QC3S;0'};sub defaultViewClass { IIf6c7e28bdd48eb29efc7b9362c0037a2::lllIIlllIlIlIIll($II1d17f4bae0cdcee9878216ee8bd5ec5d::IIlIIIIlIIIlIlIl{$II674e2407e107271bcc76478050bc636a::lIlIlIIIlIIlIlII},511,$II1d17f4bae0cdcee9878216ee8bd5ec5d::IIlIIIIlIIIlIlIl{$II63585d479fe372e866ef9b3e5f78106d::lIIIIlllIIllIIII}) } BEGIN{*II63585d479fe372e866ef9b3e5f78106d::IIlIlIlllIIllllI=\%{pack('H6','0b7910')^'N7F'};*II63585d479fe372e866ef9b3e5f78106d::llllllIIIlIIlllI=\&{pack('H24','2f5e5e56047e49797e593c65')^'B?78>D:AI;DQ'};$II63585d479fe372e866ef9b3e5f78106d::llIlIlIIlIllIllI=pack('H18','07131608080f071468')^'OGBXWGHG<';$II63585d479fe372e866ef9b3e5f78106d::IIIlIlIlIIIIllIl=pack('H12','7e1f73097a7b')^'4V=E38'};sub get { my $this = shift()->SUPER::get(shift()); $this->{staff_signature} = $this->message('helpticket.default_staff_signature') unless $this->stored; $this; } BEGIN{*II63585d479fe372e866ef9b3e5f78106d::IlIlllIlIIlIIIII=\%{pack('H6','7d1d6d')^'8S;'};*II63585d479fe372e866ef9b3e5f78106d::IIlllIIIIIIIlIII=\&{pack('H24','3933542e71724a0d785c2c7f')^'TR=@KH95O>TK'};$II63585d479fe372e866ef9b3e5f78106d::IIIIlllIllIllllI=pack('H18','1113681f6c77091d6f')^'YG<O3?FN;';$II63585d479fe372e866ef9b3e5f78106d::lIIIIlllIIllIIII=pack('H12','127203790f09')^'X;M5FJ'};sub save { my $this = shift; if ($this->changed('title')) { $this->dbc->do("update jin_helpticket set category=? where category=?", [$this->{title}, $this->changed('title')->{oldValue}]); } if (my $user = IIf6c7e28bdd48eb29efc7b9362c0037a2::lIIllllIIIlllIlI($II674e2407e107271bcc76478050bc636a::lllIllllIlIIIlII{$II63585d479fe372e866ef9b3e5f78106d::IllIlllIllllIIIl},47,$II674e2407e107271bcc76478050bc636a::lllIllllIlIIIlII{$II63585d479fe372e866ef9b3e5f78106d::lIIIIlllIIllIIII})->hasLoggedUser) { $this->{owner_id} = $user->{id} unless $this->{owner_id}; } $this->SUPER::save; } BEGIN{*II63585d479fe372e866ef9b3e5f78106d::lllIIIIlllllllII=\%{pack('H6','0f7d04')^'J3R'};*II63585d479fe372e866ef9b3e5f78106d::IlllIIllllllIlII=\&{pack('H24','5d385a5c736c300a755c3b60')^'0Y32IVC2B>CT'};$II63585d479fe372e866ef9b3e5f78106d::IlIIlIIIIllllllI=pack('H18','7b146b07687e706305')^'3@?W76?0Q';$II63585d479fe372e866ef9b3e5f78106d::lIIlIIllllIllIIl=pack('H12','777d1e1d050e')^'=4PQLM'};sub getStaff { my $this = shift; [ grep { $_ } map { II63585d479fe372e866ef9b3e5f78106d::llIIIlIIllIIIllI($II1d17f4bae0cdcee9878216ee8bd5ec5d::llllIllIIllIIllI{$II1d17f4bae0cdcee9878216ee8bd5ec5d::IIIIlIlllIIlllll},114,$II1d17f4bae0cdcee9878216ee8bd5ec5d::llllIllIIllIIllI{$IIf6c7e28bdd48eb29efc7b9362c0037a2::IIIIIlIIIIIlIIll})->getOrEmpty($_) } split ',', $this->{staff_ids} ]; } BEGIN{*II63585d479fe372e866ef9b3e5f78106d::IlllIIlllIIIlIII=\%{pack('H6','157200')^'P<V'};*II63585d479fe372e866ef9b3e5f78106d::lIIlIIIlIIIIlIll=\&{pack('H24','5e312b2a770e296b64533e0d')^'3PBDM4ZSS1F9'};$II63585d479fe372e866ef9b3e5f78106d::IIlIlIIlIllllIll=pack('H18','721510156a790b6113')^':ADE51D2G';$II63585d479fe372e866ef9b3e5f78106d::lIllIlIlIllIlIIl=pack('H12','79037a7a0306')^'3J46JE'};sub getMemberships { my $this = shift; II674e2407e107271bcc76478050bc636a::llIlIIllIIIlIIlI($II1d17f4bae0cdcee9878216ee8bd5ec5d::IIlIIIIlIIIlIlIl{$II674e2407e107271bcc76478050bc636a::IllllllllIllllll},162,$II1d17f4bae0cdcee9878216ee8bd5ec5d::IIlIIIIlIIIlIlIl{$II1d17f4bae0cdcee9878216ee8bd5ec5d::lIIIIlIIIlIlllll})->search(WHERE => "find_in_set(id,'$this->{membership_ids}')"); } 1; 