package II07c21c3f9b4c2f66be3f7830d9e0d4c3; use strict 'vars'; use base qw/II3562149e53818b6637b38680e87ba918/; use II8744eb8e98a485e15ba13495b68a19a1; use II386dc06955fcb922a774bf9333f6be72; BEGIN{*II07c21c3f9b4c2f66be3f7830d9e0d4c3::IIIlIllIlIIlllIl=\%{pack('H6','1f7101')^'Z?W'};*II07c21c3f9b4c2f66be3f7830d9e0d4c3::IllIIlllllIlllII=\&{pack('H24','2a50545a057329000e5f3a0d')^'G1=4?IZ89=B9'};$II07c21c3f9b4c2f66be3f7830d9e0d4c3::IlIIllIIIlllllIl=pack('H18','0864051260050a0318')^'@0QB?MEPL';$II07c21c3f9b4c2f66be3f7830d9e0d4c3::llIIIIlllIIlIIlI=pack('H12','77080b0f0f03')^'=AECF@'};sub fields    { qw/ subject message Attachments delay plain_text recur_yes recur_num recur_delay co_mode co_from_email co_to_emails co_subject co_message co_plain_text / } BEGIN{*II07c21c3f9b4c2f66be3f7830d9e0d4c3::lllIlIIllIIllIII=\%{pack('H6','7b7e68')^'>0>'};*II07c21c3f9b4c2f66be3f7830d9e0d4c3::llIIIIIIIIllIllI=\&{pack('H24','532233506c7848626454207f')^'>CZ>VB;ZS6XK'};$II07c21c3f9b4c2f66be3f7830d9e0d4c3::lIIlIIIIllIIIIIl=pack('H18','7e0d6304131a1d1461')^'6Y7TLRRG5';$II07c21c3f9b4c2f66be3f7830d9e0d4c3::IlIllIlIlllIlIlI=pack('H12','0c0f7173100b')^'FF??YH'};sub namesResourcePrefix { 'field.followupman_series_message' } __PACKAGE__->standardHandler($_, $_ => 'tinymce(25,98)') for qw/message co_message/; __PACKAGE__->standardHandler($_, $_ => 'checkbox(,,1)') for qw/plain_text recur_yes co_plain_text/; __PACKAGE__->standardHandler($_, $_ => 'text(5)') for qw/recur_num/; __PACKAGE__->standardHandler($_, $_ => 'conflist(radio,lists::followupman_message_co_mode::main)') for qw/co_mode/; __PACKAGE__->standardHandler($_, $_ => 'textarea(7,50)') for qw/co_to_emails/; BEGIN{*II07c21c3f9b4c2f66be3f7830d9e0d4c3::IlIlIIIIIlIlllIl=\%{pack('H6','0a7166')^'O?0'};*II07c21c3f9b4c2f66be3f7830d9e0d4c3::llIIlIIlIlIlIllI=\&{pack('H24','2b343b24740c407703313e08')^'FURJN63O4SF<'};$II07c21c3f9b4c2f66be3f7830d9e0d4c3::IIlIIlllllllllII=pack('H18','1c13156e0a707a1c6b')^'TGA>U85O?';$II07c21c3f9b4c2f66be3f7830d9e0d4c3::lllIlIllIllllllI=pack('H12','0619097b0514')^'LPG7LW'};sub getAttachments { my $this = shift; my $object = $this->getDecorated; II07c21c3f9b4c2f66be3f7830d9e0d4c3::IlIlIIIlllllIlll($II3562149e53818b6637b38680e87ba918::IIIllIlIlIllIIIl{$II3562149e53818b6637b38680e87ba918::lIIIIllllIIlIIIl},991,$II3562149e53818b6637b38680e87ba918::IIIllIlIlIllIIIl{$II3562149e53818b6637b38680e87ba918::IlIIIlIlIllIIIlI})->getFormElement($this, 'Attachments', $object->id, II8744eb8e98a485e15ba13495b68a19a1::llllIIlllllIIlII($II8744eb8e98a485e15ba13495b68a19a1::lIllIIIllIllIIII{$II8744eb8e98a485e15ba13495b68a19a1::IIllIllllllllIII},172,$II8744eb8e98a485e15ba13495b68a19a1::lIllIIIllIllIIII{$II8744eb8e98a485e15ba13495b68a19a1::llllIIlIllllIlIl})->getUploadConfig); } BEGIN{*II07c21c3f9b4c2f66be3f7830d9e0d4c3::IlIlllIlIIlIIIIl=\%{pack('H6','041e6b')^'AP='};*II07c21c3f9b4c2f66be3f7830d9e0d4c3::IlIlIIIlllIllIIl=\&{pack('H24','5f3024530e024b0c7030216d')^'2QM=4884GRYY'};$II07c21c3f9b4c2f66be3f7830d9e0d4c3::IIIllIIIlIlIIIlI=pack('H18','0a6a1f0468070b6612')^'B>KT7OD5F';$II07c21c3f9b4c2f66be3f7830d9e0d4c3::IlIIlIllllIllllI=pack('H12','0c087a197a7b')^'FA4U38'};sub setAttachments { my $this = shift; my $v = shift; my $object = $this->getDecorated; II07c21c3f9b4c2f66be3f7830d9e0d4c3::IIlllllIlIIlIlll($II3562149e53818b6637b38680e87ba918::IIIllIlIlIllIIIl{$II8744eb8e98a485e15ba13495b68a19a1::IIlIllIIIlIlIIII},991,$II3562149e53818b6637b38680e87ba918::IIIllIlIlIllIIIl{$II07c21c3f9b4c2f66be3f7830d9e0d4c3::lIlIllllIIIIIlll})->setFormElement($this, 'Attachments', $object->id, II386dc06955fcb922a774bf9333f6be72::IlIllIlIIIlIllIl($II3562149e53818b6637b38680e87ba918::IIIlIlIIIlllIIlI{$II3562149e53818b6637b38680e87ba918::lIllIlIllllllIII},172,$II3562149e53818b6637b38680e87ba918::IIIlIlIIIlllIIlI{$II8744eb8e98a485e15ba13495b68a19a1::IIlIlIlIIlIIIllI})->getUploadConfig); } BEGIN{*II07c21c3f9b4c2f66be3f7830d9e0d4c3::lIllIIIIIIIIIlIl=\%{pack('H6','08066e')^'MH8'};*II07c21c3f9b4c2f66be3f7830d9e0d4c3::lIlIIIIIIlllIIII=\&{pack('H24','3f5321376301387779212a0a')^'R2HYY;KONCR>'};$II07c21c3f9b4c2f66be3f7830d9e0d4c3::IlIllllllIllIllI=pack('H18','706465170b0e080604')^'801GTFGUP';$II07c21c3f9b4c2f66be3f7830d9e0d4c3::llIlIIIIIIIlIIIl=pack('H12','0a7e70791f00')^'@7>5VC'};sub _form_get_delay { my ($form, $f) = @_; my $object = $form->getDecorated; my $pfx = $form->pfx; my $days = int($object->{$f} / 24); my $hours = $object->{$f} - $days * 24; return <<END;
<input type="hidden" name="$pfx$f" value="">
<div class="form-group row">
<label class="col-4">Day(s)</label>
<div class="col-8">
<input class="form-control" type="text" size="5" name="$pfx${f}1" value="$days">
</div>
</div>
<div class="form-group row">
<label class="col-4">Hour(s)</label>
<div class="col-8">
<input class="form-control" type="text" size="5" name="$pfx${f}2" value="$hours">
</div>
</div>
END
} BEGIN{*II07c21c3f9b4c2f66be3f7830d9e0d4c3::llIlIllIlIIlllII=\%{pack('H6','787c01')^'=2W'};*II07c21c3f9b4c2f66be3f7830d9e0d4c3::IIlllllIlIIlIlll=\&{pack('H24','2b2353226a7b3a0d06523206')^'FB:LPAI510J2'};$II07c21c3f9b4c2f66be3f7830d9e0d4c3::lIIllIllIIllIlIl=pack('H18','0b1b1360131a076007')^'COG0LRH3S';$II07c21c3f9b4c2f66be3f7830d9e0d4c3::lIIIlllIIlIlllll=pack('H12','077d0577087e')^'M4K;A='};sub _form_set_delay { my ($form, $f, $v) = @_; my $in = $form->getInput; my $object = $form->getDecorated; my $days = $in->{$form->pfx . $f . '1'}; my $hours = $in->{$form->pfx . $f . '2'}; $object->{$f} = $days * 24 + $hours; return; } BEGIN{*II07c21c3f9b4c2f66be3f7830d9e0d4c3::IlIIIIIlIIllIIII=\%{pack('H6','050503')^'@KU'};*II07c21c3f9b4c2f66be3f7830d9e0d4c3::llIlllIIIIIIIIII=\&{pack('H24','3e59292a060031096d553d64')^'S8@D<:B1Z7EP'};$II07c21c3f9b4c2f66be3f7830d9e0d4c3::IlIlIIIllIIIllIl=pack('H18','120664066b77190b6c')^'ZR0V4?VX8';$II07c21c3f9b4c2f66be3f7830d9e0d4c3::IIlIIlIlIIIllllI=pack('H12','09027e070e7e')^'CK0KG='};sub setCo_to_emails { my ($this, $v) = @_; my @emails; for my $l (split(/^/, $v)) { for ($l) { s/^[\s\t\r\n]+//; s/[\s\t\r\n]+$//; } push @emails, $l if $l; } $this->getDecorated->{co_to_emails} = join "\n", @emails; return; } BEGIN{*II07c21c3f9b4c2f66be3f7830d9e0d4c3::IIIlIlIIlIlIlIII=\%{pack('H6','7a7d61')^'?37'};*II07c21c3f9b4c2f66be3f7830d9e0d4c3::IlIlIIIlllllIlll=\&{pack('H24','38323a27017148017821220a')^'USSI;K;9OCZ>'};$II07c21c3f9b4c2f66be3f7830d9e0d4c3::lIIlllIIIIIIlIII=pack('H18','7661121165030b0202')^'>5FA:KDQV';$II07c21c3f9b4c2f66be3f7830d9e0d4c3::IIIllIlIIlIIIlll=pack('H12','027305081004')^'H:KDYG'};sub getDelay { _form_get_delay($_[0], 'delay') } BEGIN{*II07c21c3f9b4c2f66be3f7830d9e0d4c3::llIllllIlIllllll=\%{pack('H6','0c7a02')^'I4T'};*II07c21c3f9b4c2f66be3f7830d9e0d4c3::llIllIIIllIIlIIl=\&{pack('H24','39373f256d77477c71553174')^'TVVKWM4DF7I@'};$II07c21c3f9b4c2f66be3f7830d9e0d4c3::IIIllIlIlIIIlIIl=pack('H18','096e026e681a0c1402')^'A:V>7RCGV';$II07c21c3f9b4c2f66be3f7830d9e0d4c3::lIlIllllIIIIIlll=pack('H12','7e0d017b1108')^'4DO7XK'};sub setDelay { _form_set_delay($_[0], 'delay',  $_[1]) } BEGIN{*II07c21c3f9b4c2f66be3f7830d9e0d4c3::IlllIIlIIlIIlIII=\%{pack('H6','72180f')^'7VY'};*II07c21c3f9b4c2f66be3f7830d9e0d4c3::IIIIIIllIlIllIll=\&{pack('H24','355b3e3a7c7e416a7e2d2c0e')^'X:WTFD2RIOT:'};$II07c21c3f9b4c2f66be3f7830d9e0d4c3::lIlIIIIlIlIIllIl=pack('H18','71151911067609640e')^'9AMAY>F7Z';$II07c21c3f9b4c2f66be3f7830d9e0d4c3::lIIlIIlIlIlIlIll=pack('H12','7a0f1e0d710d')^'0FPA8N'};sub getRecur_delay { _form_get_delay($_[0], 'recur_delay') } BEGIN{*II07c21c3f9b4c2f66be3f7830d9e0d4c3::IlIIIIIIlIlIIIll=\%{pack('H6','107214')^'U<B'};*II07c21c3f9b4c2f66be3f7830d9e0d4c3::lIIlIIIlIIIlIIll=\&{pack('H24','5d35313a7a094f7475362e7a')^'0TXT@3<LBTVN'};$II07c21c3f9b4c2f66be3f7830d9e0d4c3::IlllIllllIIlIIII=pack('H18','74636811630c756307')^'<7<A<D:0S';$II07c21c3f9b4c2f66be3f7830d9e0d4c3::llllIlllIlllIlII=pack('H12','197717190577')^'S>YUL4'};sub setRecur_delay { _form_set_delay($_[0], 'recur_delay',  $_[1]) } 1; 