settings.rb 153 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765
  1. # Copyright (C) 2012-2024 Zammad Foundation, https://zammad-foundation.org/
  2. Setting.create_if_not_exists(
  3. title: __('Application secret'),
  4. name: 'application_secret',
  5. area: 'Core',
  6. description: __('Defines the random application secret.'),
  7. options: {},
  8. state: SecureRandom.hex(128),
  9. preferences: {
  10. permission: ['admin'],
  11. protected: true,
  12. },
  13. frontend: false
  14. )
  15. Setting.create_if_not_exists(
  16. title: __('System Init Done'),
  17. name: 'system_init_done',
  18. area: 'Core',
  19. description: __('Defines if application is in init mode.'),
  20. options: {},
  21. state: false,
  22. preferences: { online_service_disable: true },
  23. frontend: true
  24. )
  25. Setting.create_if_not_exists(
  26. title: __('App Version'),
  27. name: 'app_version',
  28. area: 'Core::WebApp',
  29. description: __('Only used internally to propagate current web app version to clients.'),
  30. options: {},
  31. state: '',
  32. preferences: { online_service_disable: true },
  33. frontend: false
  34. )
  35. Setting.create_if_not_exists(
  36. title: __('Maintenance Mode'),
  37. name: 'maintenance_mode',
  38. area: 'Core::WebApp',
  39. description: __('Enable or disable the maintenance mode of Zammad. If enabled, all non-administrators get logged out and only administrators can start a new session.'),
  40. options: {},
  41. state: false,
  42. preferences: {
  43. permission: ['admin.maintenance'],
  44. },
  45. frontend: true
  46. )
  47. Setting.create_if_not_exists(
  48. title: __('Maintenance Login'),
  49. name: 'maintenance_login',
  50. area: 'Core::WebApp',
  51. description: __('Put a message on the login page. To change it, click on the text area below and change it in-line.'),
  52. options: {},
  53. state: false,
  54. preferences: {
  55. permission: ['admin.maintenance'],
  56. },
  57. frontend: true
  58. )
  59. Setting.create_if_not_exists(
  60. title: __('Maintenance Login'),
  61. name: 'maintenance_login_message',
  62. area: 'Core::WebApp',
  63. description: __('Message for login page.'),
  64. options: {},
  65. state: __('This is a default maintenance message. Click here to change.'),
  66. preferences: {
  67. permission: ['admin.maintenance'],
  68. },
  69. frontend: true
  70. )
  71. Setting.create_if_not_exists(
  72. title: __('Developer System'),
  73. name: 'developer_mode',
  74. area: 'Core::Develop',
  75. description: __('Defines if the application is in developer mode (all users have the same password and password reset will work without email delivery).'),
  76. options: {},
  77. state: Rails.env.development?,
  78. preferences: { online_service_disable: true },
  79. frontend: true
  80. )
  81. Setting.create_if_not_exists(
  82. title: __('Online Service'),
  83. name: 'system_online_service',
  84. area: 'Core',
  85. description: __('Defines if application is used as online service.'),
  86. options: {},
  87. state: false,
  88. preferences: { online_service_disable: true },
  89. frontend: true
  90. )
  91. Setting.create_if_not_exists(
  92. title: __('Product Name'),
  93. name: 'product_name',
  94. area: 'System::Branding',
  95. description: __('Defines the name of the application, shown in the web interface, tabs, and title bar of the web browser.'),
  96. options: {
  97. form: [
  98. {
  99. display: '',
  100. null: false,
  101. name: 'product_name',
  102. tag: 'input',
  103. },
  104. ],
  105. },
  106. preferences: {
  107. render: true,
  108. prio: 1,
  109. placeholder: true,
  110. permission: ['admin.branding'],
  111. },
  112. state: __('Zammad Helpdesk'),
  113. frontend: true
  114. )
  115. Setting.create_if_not_exists(
  116. title: __('Logo'),
  117. name: 'product_logo',
  118. area: 'System::Branding',
  119. description: __('Defines the logo of the application, shown in the web interface.'),
  120. options: {
  121. form: [
  122. {
  123. display: '',
  124. null: false,
  125. name: 'product_logo',
  126. tag: 'input',
  127. },
  128. ],
  129. },
  130. preferences: {
  131. prio: 3,
  132. controller: 'SettingsAreaLogo',
  133. permission: ['admin.branding'],
  134. },
  135. state: 'logo.svg',
  136. frontend: true
  137. )
  138. Setting.create_if_not_exists(
  139. title: __('Organization'),
  140. name: 'organization',
  141. area: 'System::Branding',
  142. description: __('Will be shown in the app and is included in email footers.'),
  143. options: {
  144. form: [
  145. {
  146. display: '',
  147. null: false,
  148. name: 'organization',
  149. tag: 'input',
  150. },
  151. ],
  152. },
  153. state: '',
  154. preferences: {
  155. prio: 2,
  156. placeholder: true,
  157. permission: ['admin.branding'],
  158. },
  159. frontend: true
  160. )
  161. Setting.create_if_not_exists(
  162. title: __('Locale'),
  163. name: 'locale_default',
  164. area: 'System::Branding',
  165. description: __('Defines the default system language.'),
  166. options: {
  167. form: [
  168. {
  169. name: 'locale_default',
  170. }
  171. ],
  172. },
  173. state: 'en-us',
  174. preferences: {
  175. prio: 8,
  176. controller: 'SettingsAreaItemDefaultLocale',
  177. permission: ['admin.system'],
  178. },
  179. frontend: true
  180. )
  181. Setting.create_if_not_exists(
  182. title: __('Timezone'),
  183. name: 'timezone_default',
  184. area: 'System::Branding',
  185. description: __('Defines the default system timezone.'),
  186. options: {
  187. form: [
  188. {
  189. name: 'timezone_default',
  190. }
  191. ],
  192. },
  193. state: '',
  194. preferences: {
  195. prio: 9,
  196. controller: 'SettingsAreaItemDefaultTimezone',
  197. permission: ['admin.system'],
  198. },
  199. frontend: true
  200. )
  201. Setting.create_or_update(
  202. title: __('Pretty Date'),
  203. name: 'pretty_date_format',
  204. area: 'System::Branding',
  205. description: __('Defines pretty date format.'),
  206. options: {
  207. form: [
  208. {
  209. display: '',
  210. null: false,
  211. name: 'pretty_date_format',
  212. tag: 'select',
  213. options: {
  214. relative: __('relative - e. g. "2 hours ago" or "2 days and 15 minutes ago"'),
  215. absolute: __('absolute - e. g. "Monday 09:30" or "Tuesday 23. Feb 14:20"'),
  216. timestamp: __('timestamp - e. g. "2018-08-30 14:30"'),
  217. },
  218. translate: true,
  219. },
  220. ],
  221. },
  222. preferences: {
  223. render: true,
  224. prio: 10,
  225. permission: ['admin.branding'],
  226. },
  227. state: 'relative',
  228. frontend: true
  229. )
  230. options = {}
  231. (10..99).each do |item|
  232. options[item] = item
  233. end
  234. system_id = rand(10..99) # rubocop:disable Zammad/ForbidRand
  235. Setting.create_if_not_exists(
  236. title: __('SystemID'),
  237. name: 'system_id',
  238. area: 'System::Base',
  239. description: __('Defines the system identifier. Every ticket number contains this ID. This ensures that only tickets which belong to your system will be processed as follow-ups (useful when communicating between two instances of Zammad).'),
  240. options: {
  241. form: [
  242. {
  243. display: '',
  244. null: true,
  245. name: 'system_id',
  246. tag: 'select',
  247. options: options,
  248. },
  249. ],
  250. },
  251. state: system_id,
  252. preferences: {
  253. online_service_disable: true,
  254. placeholder: true,
  255. authentication: true,
  256. permission: ['admin.system'],
  257. },
  258. frontend: true
  259. )
  260. Setting.create_if_not_exists(
  261. title: __('Fully Qualified Domain Name'),
  262. name: 'fqdn',
  263. area: 'System::Base',
  264. description: __('Defines the fully qualified domain name of the system. This setting is used as a variable, #{setting.fqdn} which is found in all forms of messaging used by the application, to build links to the tickets within your system.'), # rubocop:disable Lint/InterpolationCheck
  265. options: {
  266. form: [
  267. {
  268. display: '',
  269. null: false,
  270. name: 'fqdn',
  271. tag: 'input',
  272. },
  273. ],
  274. },
  275. state: 'zammad.example.com',
  276. preferences: {
  277. online_service_disable: true,
  278. placeholder: true,
  279. permission: ['admin.system'],
  280. },
  281. frontend: true
  282. )
  283. Setting.create_if_not_exists(
  284. title: __('Websocket backend'),
  285. name: 'websocket_backend',
  286. area: 'System::WebSocket',
  287. description: __('Defines how to reach websocket server. "websocket" is default on production, "websocketPort" is for CI'),
  288. state: Rails.env.production? ? 'websocket' : 'websocketPort',
  289. frontend: true
  290. )
  291. Setting.create_if_not_exists(
  292. title: __('Websocket port'),
  293. name: 'websocket_port',
  294. area: 'System::WebSocket',
  295. description: __('Defines the port of the websocket server.'),
  296. options: {
  297. form: [
  298. {
  299. display: '',
  300. null: false,
  301. name: 'websocket_port',
  302. tag: 'input',
  303. },
  304. ],
  305. },
  306. state: '6042',
  307. preferences: { online_service_disable: true },
  308. frontend: true
  309. )
  310. Setting.create_if_not_exists(
  311. title: __('HTTP type'),
  312. name: 'http_type',
  313. area: 'System::Base',
  314. description: __('Defines the HTTP protocol of your instance.'),
  315. options: {
  316. form: [
  317. {
  318. display: '',
  319. null: true,
  320. name: 'http_type',
  321. tag: 'select',
  322. options: {
  323. 'https' => 'https',
  324. 'http' => 'http',
  325. },
  326. },
  327. ],
  328. },
  329. state: 'http',
  330. preferences: {
  331. online_service_disable: true,
  332. placeholder: true,
  333. permission: ['admin.system'],
  334. },
  335. frontend: true
  336. )
  337. Setting.create_if_not_exists(
  338. title: __('Storage Mechanism'),
  339. name: 'storage_provider',
  340. area: 'System::Storage',
  341. description: __('"Database" stores all attachments in the database (not recommended for storing large amounts of data). "Filesystem" stores the data in the filesystem. "Simple Storage (S3)" stores the data in a remote S3 compatible object filesystem. You can switch between the modules even on a system that is already in production without any loss of data.'),
  342. options: {
  343. form: [
  344. {
  345. display: '',
  346. null: true,
  347. name: 'storage_provider',
  348. tag: 'select',
  349. options: {
  350. 'DB' => __('Database'),
  351. 'File' => __('Filesystem'),
  352. 'S3' => __('Simple Storage (S3)'),
  353. },
  354. translate: true,
  355. },
  356. ],
  357. },
  358. state: 'DB',
  359. preferences: {
  360. controller: 'SettingsAreaStorageProvider',
  361. online_service_disable: true,
  362. permission: ['admin.system'],
  363. validations: ['Setting::Validation::StorageProvider'],
  364. },
  365. frontend: false
  366. )
  367. Setting.create_if_not_exists(
  368. title: __('Image Service'),
  369. name: 'image_backend',
  370. area: 'System::Services',
  371. description: __('Defines the backend for user and organization image lookups.'),
  372. options: {
  373. form: [
  374. {
  375. display: '',
  376. null: true,
  377. name: 'image_backend',
  378. tag: 'select',
  379. options: {
  380. '' => '-',
  381. 'Service::Image::Zammad' => __('Zammad Image Service'),
  382. },
  383. },
  384. ],
  385. },
  386. state: 'Service::Image::Zammad',
  387. preferences: {
  388. prio: 1,
  389. permission: ['admin.system'],
  390. },
  391. frontend: false
  392. )
  393. Setting.create_if_not_exists(
  394. title: __('Geo IP Service'),
  395. name: 'geo_ip_backend',
  396. area: 'System::Services',
  397. description: __('Defines the backend for geo IP lookups. Also shows location of an IP address if it is traceable.'),
  398. options: {
  399. form: [
  400. {
  401. display: '',
  402. null: true,
  403. name: 'geo_ip_backend',
  404. tag: 'select',
  405. options: {
  406. '' => '-',
  407. 'Service::GeoIp::Zammad' => __('Zammad GeoIP Service'),
  408. },
  409. },
  410. ],
  411. },
  412. state: 'Service::GeoIp::Zammad',
  413. preferences: {
  414. prio: 2,
  415. permission: ['admin.system'],
  416. },
  417. frontend: false
  418. )
  419. Setting.create_if_not_exists(
  420. title: __('Geo Location Service'),
  421. name: 'geo_location_backend',
  422. area: 'System::Services',
  423. description: __('Defines the backend for geo location lookups to store geo locations for addresses.'),
  424. options: {
  425. form: [
  426. {
  427. display: '',
  428. null: true,
  429. name: 'geo_location_backend',
  430. tag: 'select',
  431. options: {
  432. '' => '-',
  433. 'Service::GeoLocation::Gmaps' => __('Google Maps'),
  434. },
  435. },
  436. ],
  437. },
  438. state: 'Service::GeoLocation::Gmaps',
  439. preferences: {
  440. prio: 3,
  441. permission: ['admin.system'],
  442. },
  443. frontend: false
  444. )
  445. Setting.create_if_not_exists(
  446. title: __('Geo Calendar Service'),
  447. name: 'geo_calendar_backend',
  448. area: 'System::Services',
  449. description: __('Defines the backend for geo calendar lookups. Used for initial calendar succession.'),
  450. options: {
  451. form: [
  452. {
  453. display: '',
  454. null: true,
  455. name: 'geo_calendar_backend',
  456. tag: 'select',
  457. options: {
  458. '' => '-',
  459. 'Service::GeoCalendar::Zammad' => __('Zammad GeoCalendar Service'),
  460. },
  461. },
  462. ],
  463. },
  464. state: 'Service::GeoCalendar::Zammad',
  465. preferences: {
  466. prio: 2,
  467. permission: ['admin.system'],
  468. },
  469. frontend: false
  470. )
  471. Setting.create_if_not_exists(
  472. title: __('Proxy Settings'),
  473. name: 'proxy',
  474. area: 'System::Network',
  475. description: __('Address of the proxy server for http and https resources.'),
  476. options: {
  477. form: [
  478. {
  479. display: '',
  480. null: false,
  481. name: 'proxy',
  482. tag: 'input',
  483. placeholder: 'proxy.example.com:3128',
  484. },
  485. ],
  486. },
  487. state: '',
  488. preferences: {
  489. online_service_disable: true,
  490. controller: 'SettingsAreaProxy',
  491. prio: 1,
  492. permission: ['admin.system'],
  493. },
  494. frontend: false
  495. )
  496. Setting.create_if_not_exists(
  497. title: __('Proxy User'),
  498. name: 'proxy_username',
  499. area: 'System::Network',
  500. description: __('Username for proxy connection.'),
  501. options: {
  502. form: [
  503. {
  504. display: '',
  505. null: false,
  506. name: 'proxy_username',
  507. tag: 'input',
  508. },
  509. ],
  510. },
  511. state: '',
  512. preferences: {
  513. disabled: true,
  514. online_service_disable: true,
  515. prio: 2,
  516. permission: ['admin.system'],
  517. },
  518. frontend: false
  519. )
  520. Setting.create_if_not_exists(
  521. title: __('Proxy Password'),
  522. name: 'proxy_password',
  523. area: 'System::Network',
  524. description: __('Password for proxy connection.'),
  525. options: {
  526. form: [
  527. {
  528. display: '',
  529. null: false,
  530. name: 'proxy_password',
  531. tag: 'input',
  532. },
  533. ],
  534. },
  535. state: '',
  536. preferences: {
  537. disabled: true,
  538. online_service_disable: true,
  539. prio: 3,
  540. permission: ['admin.system'],
  541. },
  542. frontend: false
  543. )
  544. Setting.create_if_not_exists(
  545. title: __('No Proxy'),
  546. name: 'proxy_no',
  547. area: 'System::Network',
  548. description: __('No proxy for the following hosts.'),
  549. options: {
  550. form: [
  551. {
  552. display: '',
  553. null: false,
  554. name: 'proxy_no',
  555. tag: 'input',
  556. },
  557. ],
  558. },
  559. state: 'localhost,127.0.0.0,::1',
  560. preferences: {
  561. disabled: true,
  562. online_service_disable: true,
  563. prio: 4,
  564. permission: ['admin.system'],
  565. },
  566. frontend: false
  567. )
  568. Setting.create_if_not_exists(
  569. title: __('Core Workflow Ajax Mode'),
  570. name: 'core_workflow_ajax_mode',
  571. area: 'System::UI',
  572. description: __('Defines if the core workflow communication should run over ajax instead of websockets.'),
  573. options: {
  574. form: [
  575. {
  576. display: '',
  577. null: true,
  578. name: 'core_workflow_ajax_mode',
  579. tag: 'boolean',
  580. options: {
  581. true => 'yes',
  582. false => 'no',
  583. },
  584. },
  585. ],
  586. },
  587. state: false,
  588. preferences: {
  589. prio: 3,
  590. permission: ['admin.system'],
  591. },
  592. frontend: true
  593. )
  594. Setting.create_if_not_exists(
  595. title: __('User Organization Selector - email'),
  596. name: 'ui_user_organization_selector_with_email',
  597. area: 'UI::UserOrganizatiomSelector',
  598. description: __('Defines if the email should be displayed in the result of the user/organization widget.'),
  599. options: {
  600. form: [
  601. {
  602. display: '',
  603. null: true,
  604. name: 'ui_user_organization_selector_with_email',
  605. tag: 'boolean',
  606. translate: true,
  607. options: {
  608. true => 'yes',
  609. false => 'no',
  610. },
  611. },
  612. ],
  613. },
  614. state: false,
  615. preferences: {
  616. prio: 100,
  617. permission: ['admin.ui'],
  618. },
  619. frontend: true
  620. )
  621. Setting.create_if_not_exists(
  622. title: __('Note - default visibility'),
  623. name: 'ui_ticket_zoom_article_note_new_internal',
  624. area: 'UI::TicketZoom',
  625. description: __('Defines the default visibility for new notes.'),
  626. options: {
  627. form: [
  628. {
  629. display: '',
  630. null: true,
  631. name: 'ui_ticket_zoom_article_note_new_internal',
  632. tag: 'boolean',
  633. translate: true,
  634. options: {
  635. true => 'internal',
  636. false => 'public',
  637. },
  638. },
  639. ],
  640. },
  641. state: true,
  642. preferences: {
  643. prio: 100,
  644. permission: ['admin.ui'],
  645. },
  646. frontend: true
  647. )
  648. Setting.create_if_not_exists(
  649. title: __('Article - visibility confirmation dialog'),
  650. name: 'ui_ticket_zoom_article_visibility_confirmation_dialog',
  651. area: 'UI::TicketZoom',
  652. description: __('Defines if the agent has to accept a confirmation dialog when changing the article visibility to "public".'),
  653. options: {
  654. form: [
  655. {
  656. display: '',
  657. null: true,
  658. name: 'ui_ticket_zoom_article_visibility_confirmation_dialog',
  659. tag: 'boolean',
  660. options: {
  661. true => 'yes',
  662. false => 'no',
  663. },
  664. },
  665. ],
  666. },
  667. state: false,
  668. preferences: {
  669. prio: 100,
  670. permission: ['admin.ui'],
  671. },
  672. frontend: true
  673. )
  674. Setting.create_if_not_exists(
  675. title: __('Email - subject field'),
  676. name: 'ui_ticket_zoom_article_email_subject',
  677. area: 'UI::TicketZoom',
  678. description: __('Use subject field for emails. If disabled, the ticket title will be used as subject.'),
  679. options: {
  680. form: [
  681. {
  682. display: '',
  683. null: true,
  684. name: 'ui_ticket_zoom_article_email_subject',
  685. tag: 'boolean',
  686. translate: true,
  687. options: {
  688. true => 'yes',
  689. false => 'no',
  690. },
  691. },
  692. ],
  693. },
  694. state: false,
  695. preferences: {
  696. prio: 200,
  697. permission: ['admin.ui'],
  698. },
  699. frontend: true
  700. )
  701. Setting.create_if_not_exists(
  702. title: __('Email - full quote'),
  703. name: 'ui_ticket_zoom_article_email_full_quote',
  704. area: 'UI::TicketZoom',
  705. description: __('Enable if you want to quote the full email in your answer. The quoted email will be put at the end of your answer. If you just want to quote a certain phrase, just mark the text and press reply (this feature is always available).'),
  706. options: {
  707. form: [
  708. {
  709. display: '',
  710. null: true,
  711. name: 'ui_ticket_zoom_article_email_full_quote',
  712. tag: 'boolean',
  713. translate: true,
  714. options: {
  715. true => 'yes',
  716. false => 'no',
  717. },
  718. },
  719. ],
  720. },
  721. state: false,
  722. preferences: {
  723. prio: 220,
  724. permission: ['admin.ui'],
  725. },
  726. frontend: true
  727. )
  728. Setting.create_if_not_exists(
  729. title: __('Email - quote header'),
  730. name: 'ui_ticket_zoom_article_email_full_quote_header',
  731. area: 'UI::TicketZoom',
  732. description: __('Enable if you want a timestamped reply header to be automatically inserted in front of quoted messages.'),
  733. options: {
  734. form: [
  735. {
  736. display: '',
  737. null: true,
  738. name: 'ui_ticket_zoom_article_email_full_quote_header',
  739. tag: 'boolean',
  740. translate: true,
  741. options: {
  742. true => 'yes',
  743. false => 'no',
  744. },
  745. },
  746. ],
  747. },
  748. state: true,
  749. preferences: {
  750. prio: 240,
  751. permission: ['admin.ui'],
  752. },
  753. frontend: true
  754. )
  755. Setting.create_if_not_exists(
  756. title: __('Twitter - tweet initials'),
  757. name: 'ui_ticket_zoom_article_twitter_initials',
  758. area: 'UI::TicketZoom',
  759. description: __('Add sender initials to end of a tweet.'),
  760. options: {
  761. form: [
  762. {
  763. display: '',
  764. null: true,
  765. name: 'ui_ticket_zoom_article_twitter_initials',
  766. tag: 'boolean',
  767. translate: true,
  768. options: {
  769. true => 'yes',
  770. false => 'no',
  771. },
  772. },
  773. ],
  774. },
  775. state: true,
  776. preferences: {
  777. prio: 300,
  778. permission: ['admin.ui'],
  779. },
  780. frontend: true
  781. )
  782. Setting.create_if_not_exists(
  783. title: __('Sidebar Attachments'),
  784. name: 'ui_ticket_zoom_attachments_preview',
  785. area: 'UI::TicketZoom::Preview',
  786. description: __('Enables preview of attachments.'),
  787. options: {
  788. form: [
  789. {
  790. display: '',
  791. null: true,
  792. name: 'ui_ticket_zoom_attachments_preview',
  793. tag: 'boolean',
  794. translate: true,
  795. options: {
  796. true => 'yes',
  797. false => 'no',
  798. },
  799. },
  800. ],
  801. },
  802. state: true,
  803. preferences: {
  804. prio: 400,
  805. permission: ['admin.ui'],
  806. },
  807. frontend: true
  808. )
  809. Setting.create_if_not_exists(
  810. title: __('Sidebar Attachments'),
  811. name: 'ui_ticket_zoom_sidebar_article_attachments',
  812. area: 'UI::TicketZoom::Preview',
  813. description: __('Enables a sidebar to show an overview of all attachments.'),
  814. options: {
  815. form: [
  816. {
  817. display: '',
  818. null: true,
  819. name: 'ui_ticket_zoom_sidebar_article_attachments',
  820. tag: 'boolean',
  821. translate: true,
  822. options: {
  823. true => 'yes',
  824. false => 'no',
  825. },
  826. },
  827. ],
  828. },
  829. state: false,
  830. preferences: {
  831. prio: 500,
  832. permission: ['admin.ui'],
  833. },
  834. frontend: true
  835. )
  836. Setting.create_if_not_exists(
  837. title: __('Set notes for ticket create types.'),
  838. name: 'ui_ticket_create_notes',
  839. area: 'UI::TicketCreate',
  840. description: __('Set notes for ticket create types by selecting type.'),
  841. options: {},
  842. state: {
  843. # 'email-out' => __('Attention: When creating a ticket an email is sent.'),
  844. },
  845. preferences: {
  846. permission: ['admin.ui'],
  847. },
  848. frontend: true
  849. )
  850. Setting.create_if_not_exists(
  851. title: __('Default type for a new ticket'),
  852. name: 'ui_ticket_create_default_type',
  853. area: 'UI::TicketCreate',
  854. description: __('Select default ticket type'),
  855. options: {
  856. form: [
  857. {
  858. display: '',
  859. null: false,
  860. multiple: false,
  861. name: 'ui_ticket_create_default_type',
  862. tag: 'select',
  863. options: {
  864. 'phone-in' => '1. Phone inbound',
  865. 'phone-out' => '2. Phone outbound',
  866. 'email-out' => '3. Email outbound',
  867. },
  868. },
  869. ],
  870. },
  871. state: 'phone-in',
  872. preferences: {
  873. permission: ['admin.ui']
  874. },
  875. frontend: true
  876. )
  877. Setting.create_if_not_exists(
  878. title: __('Available types for a new ticket'),
  879. name: 'ui_ticket_create_available_types',
  880. area: 'UI::TicketCreate',
  881. description: __('Set available ticket types'),
  882. options: {
  883. form: [
  884. {
  885. display: '',
  886. null: false,
  887. multiple: true,
  888. name: 'ui_ticket_create_available_types',
  889. tag: 'select',
  890. options: {
  891. 'phone-in' => '1. Phone inbound',
  892. 'phone-out' => '2. Phone outbound',
  893. 'email-out' => '3. Email outbound',
  894. },
  895. },
  896. ],
  897. },
  898. state: %w[phone-in phone-out email-out],
  899. preferences: {
  900. permission: ['admin.ui']
  901. },
  902. frontend: true
  903. )
  904. Setting.create_if_not_exists(
  905. title: __('Open ticket indicator'),
  906. name: 'ui_sidebar_open_ticket_indicator_colored',
  907. area: 'UI::Sidebar',
  908. description: __('Color representation of the open ticket indicator in the sidebar.'),
  909. options: {
  910. form: [
  911. {
  912. display: '',
  913. null: true,
  914. name: 'ui_sidebar_open_ticket_indicator_colored',
  915. tag: 'boolean',
  916. translate: true,
  917. options: {
  918. true => 'yes',
  919. false => 'no',
  920. },
  921. },
  922. ],
  923. },
  924. state: false,
  925. preferences: {
  926. permission: ['admin.ui'],
  927. },
  928. frontend: true
  929. )
  930. Setting.create_if_not_exists(
  931. title: __('Open ticket indicator'),
  932. name: 'ui_table_group_by_show_count',
  933. area: 'UI::Base',
  934. description: __('Total display of the number of objects in a grouping.'),
  935. options: {
  936. form: [
  937. {
  938. display: '',
  939. null: true,
  940. name: 'ui_table_group_by_show_count',
  941. tag: 'boolean',
  942. translate: true,
  943. options: {
  944. true => 'yes',
  945. false => 'no',
  946. },
  947. },
  948. ],
  949. },
  950. state: false,
  951. preferences: {
  952. permission: ['admin.ui'],
  953. },
  954. frontend: true
  955. )
  956. Setting.create_if_not_exists(
  957. title: __('Priority Icons in Overviews'),
  958. name: 'ui_ticket_overview_priority_icon',
  959. area: 'UI::TicketOverview::PriorityIcons',
  960. description: __('Enables priority icons in ticket overviews.'),
  961. options: {
  962. form: [
  963. {
  964. display: '',
  965. null: true,
  966. name: 'ui_ticket_overview_priority_icon',
  967. tag: 'boolean',
  968. translate: true,
  969. options: {
  970. true => 'yes',
  971. false => 'no',
  972. },
  973. },
  974. ],
  975. },
  976. state: false,
  977. preferences: {
  978. prio: 500,
  979. permission: ['admin.ui'],
  980. },
  981. frontend: true
  982. )
  983. Setting.create_if_not_exists(
  984. title: __('Maximum number of ticket shown in overviews'),
  985. name: 'ui_ticket_overview_ticket_limit',
  986. area: 'UI::TicketOverview::TicketLimit',
  987. description: __('Define the maximum number of ticket shown in overviews.'),
  988. options: {},
  989. state: 2000,
  990. preferences: {
  991. permission: ['admin.overview'],
  992. },
  993. frontend: true
  994. )
  995. Setting.create_if_not_exists(
  996. title: __('Maximum number of open tabs.'),
  997. name: 'ui_task_mananger_max_task_count',
  998. area: 'UI::TaskManager::Task::MaxCount',
  999. description: __('Defines the maximum number of allowed open tabs before auto cleanup removes surplus tabs when creating new tabs.'),
  1000. options: {},
  1001. state: 30,
  1002. preferences: {
  1003. permission: ['admin.ui'],
  1004. },
  1005. frontend: true
  1006. )
  1007. Setting.create_if_not_exists(
  1008. title: __('Password Login'),
  1009. name: 'user_show_password_login',
  1010. area: 'Security::Base',
  1011. description: __('Show password login for users on login page. Disabling only takes effect if third-party authentication is enabled.'),
  1012. options: {
  1013. form: [
  1014. {
  1015. display: '',
  1016. null: true,
  1017. name: 'user_show_password_login',
  1018. tag: 'boolean',
  1019. options: {
  1020. true => 'yes',
  1021. false => 'no',
  1022. },
  1023. },
  1024. ],
  1025. },
  1026. state: true,
  1027. preferences: {
  1028. prio: 5,
  1029. permission: ['admin.security'],
  1030. },
  1031. frontend: true
  1032. )
  1033. Setting.create_if_not_exists(
  1034. title: __('New User Accounts'),
  1035. name: 'user_create_account',
  1036. area: 'Security::Base',
  1037. description: __('Enables users to create their own account via web interface. This setting is only effective if the password login is enabled.'),
  1038. options: {
  1039. form: [
  1040. {
  1041. display: '',
  1042. null: true,
  1043. name: 'user_create_account',
  1044. tag: 'boolean',
  1045. options: {
  1046. true => 'yes',
  1047. false => 'no',
  1048. },
  1049. },
  1050. ],
  1051. },
  1052. state: true,
  1053. preferences: {
  1054. prio: 10,
  1055. permission: ['admin.security'],
  1056. },
  1057. frontend: true
  1058. )
  1059. Setting.create_if_not_exists(
  1060. title: __('Lost Password'),
  1061. name: 'user_lost_password',
  1062. area: 'Security::Base',
  1063. description: __('Activates lost password feature for users. This setting is only effective if the password login is enabled.'),
  1064. options: {
  1065. form: [
  1066. {
  1067. display: '',
  1068. null: true,
  1069. name: 'user_lost_password',
  1070. tag: 'boolean',
  1071. options: {
  1072. true => 'yes',
  1073. false => 'no',
  1074. },
  1075. },
  1076. ],
  1077. },
  1078. state: true,
  1079. preferences: {
  1080. prio: 20,
  1081. permission: ['admin.security'],
  1082. },
  1083. frontend: true
  1084. )
  1085. options = [ { value: '0', name: 'disabled' }, { value: 1.hour.seconds.to_s, name: __('1 hour') }, { value: 2.hours.seconds.to_s, name: __('2 hours') }, { value: 1.day.seconds.to_s, name: __('1 day') }, { value: 7.days.seconds.to_s, name: __('1 week') }, { value: 14.days.seconds.to_s, name: __('2 weeks') }, { value: 21.days.seconds.to_s, name: __('3 weeks') }, { value: 28.days.seconds.to_s, name: __('4 weeks') } ]
  1086. Setting.create_if_not_exists(
  1087. title: __('Session Timeout'),
  1088. name: 'session_timeout',
  1089. area: 'Security::Base',
  1090. description: __('Defines the session timeout for inactivity of users. Based on the assigned permissions the highest timeout value will be used, otherwise the default.'),
  1091. options: {
  1092. form: [
  1093. {
  1094. display: __('Default'),
  1095. null: false,
  1096. name: 'default',
  1097. tag: 'select',
  1098. options: options,
  1099. translate: true,
  1100. },
  1101. {
  1102. display: __('admin'),
  1103. null: false,
  1104. name: 'admin',
  1105. tag: 'select',
  1106. options: options,
  1107. translate: true,
  1108. },
  1109. {
  1110. display: __('ticket.agent'),
  1111. null: false,
  1112. name: 'ticket.agent',
  1113. tag: 'select',
  1114. options: options,
  1115. translate: true,
  1116. },
  1117. {
  1118. display: __('ticket.customer'),
  1119. null: false,
  1120. name: 'ticket.customer',
  1121. tag: 'select',
  1122. options: options,
  1123. translate: true,
  1124. },
  1125. ],
  1126. },
  1127. preferences: {
  1128. prio: 30,
  1129. },
  1130. state: {
  1131. 'default' => 4.weeks.seconds.to_s,
  1132. 'admin' => 4.weeks.seconds.to_s,
  1133. 'ticket.agent' => 4.weeks.seconds.to_s,
  1134. 'ticket.customer' => 4.weeks.seconds.to_s,
  1135. },
  1136. frontend: true
  1137. )
  1138. Setting.create_if_not_exists(
  1139. title: __('User email for multiple users'),
  1140. name: 'user_email_multiple_use',
  1141. area: 'Model::User',
  1142. description: __('Allow using one email address for multiple users.'),
  1143. options: {
  1144. form: [
  1145. {
  1146. display: '',
  1147. null: true,
  1148. name: 'user_email_multiple_use',
  1149. tag: 'boolean',
  1150. options: {
  1151. true => 'yes',
  1152. false => 'no',
  1153. },
  1154. },
  1155. ],
  1156. },
  1157. state: false,
  1158. preferences: {
  1159. permission: ['admin'],
  1160. },
  1161. frontend: false
  1162. )
  1163. Setting.create_if_not_exists(
  1164. title: __('Authentication via %s'),
  1165. name: 'auth_internal',
  1166. area: 'Security::Authentication',
  1167. description: __('Enables user authentication via %s.'),
  1168. preferences: {
  1169. title_i18n: [__('internal database')],
  1170. description_i18n: [__('internal database')],
  1171. permission: ['admin.security'],
  1172. },
  1173. state: {
  1174. priority: 1,
  1175. adapter: 'Auth::Backend::Internal',
  1176. },
  1177. frontend: false
  1178. )
  1179. Setting.create_if_not_exists(
  1180. title: __('Authentication via %s'),
  1181. name: 'auth_developer',
  1182. area: 'Security::Authentication',
  1183. description: __('Enables user authentication via %s.'),
  1184. preferences: {
  1185. title_i18n: [__('developer password')],
  1186. description_i18n: [__('developer password')],
  1187. permission: ['admin.security'],
  1188. },
  1189. state: {
  1190. priority: 2,
  1191. adapter: 'Auth::Backend::Developer',
  1192. },
  1193. frontend: false
  1194. )
  1195. Setting.create_if_not_exists(
  1196. title: __('Authentication via %s'),
  1197. name: 'auth_ldap',
  1198. area: 'Security::Authentication',
  1199. description: __('Enables user authentication via %s.'),
  1200. preferences: {
  1201. title_i18n: [__('LDAP')],
  1202. description_i18n: [__('LDAP')],
  1203. permission: ['admin.security'],
  1204. },
  1205. state: {
  1206. priority: 3,
  1207. adapter: 'Auth::Backend::Ldap',
  1208. host: 'localhost',
  1209. port: 389,
  1210. bind_dn: 'cn=Manager,dc=example,dc=org',
  1211. bind_pw: 'example',
  1212. uid: 'mail',
  1213. base: 'dc=example,dc=org',
  1214. always_filter: '',
  1215. always_roles: %w[Admin Agent],
  1216. always_groups: ['Users'],
  1217. sync_params: {
  1218. firstname: 'sn',
  1219. lastname: 'givenName',
  1220. email: 'mail',
  1221. login: 'mail',
  1222. },
  1223. },
  1224. frontend: false
  1225. )
  1226. Setting.create_if_not_exists(
  1227. title: __('Automatic account link on initial logon'),
  1228. name: 'auth_third_party_auto_link_at_inital_login',
  1229. area: 'Security::ThirdPartyAuthentication',
  1230. description: __('Enables the automatic linking of an existing account on initial login via a third party application. If this is disabled, an existing user must first log into Zammad and then link his "Third Party" account to his Zammad account via Profile -> Linked Accounts.'),
  1231. options: {
  1232. form: [
  1233. {
  1234. display: '',
  1235. null: true,
  1236. name: 'auth_third_party_auto_link_at_inital_login',
  1237. tag: 'boolean',
  1238. options: {
  1239. true => 'yes',
  1240. false => 'no',
  1241. },
  1242. },
  1243. ],
  1244. },
  1245. preferences: {
  1246. permission: ['admin.security'],
  1247. prio: 10,
  1248. },
  1249. state: false,
  1250. frontend: false
  1251. )
  1252. Setting.create_if_not_exists(
  1253. title: __('Automatic account linking notification'),
  1254. name: 'auth_third_party_linking_notification',
  1255. area: 'Security::ThirdPartyAuthentication',
  1256. description: __('Enables sending of an email notification to a user when they link their account with a third-party application.'),
  1257. options: {
  1258. form: [
  1259. {
  1260. display: '',
  1261. null: true,
  1262. name: 'auth_third_party_linking_notification',
  1263. tag: 'boolean',
  1264. options: {
  1265. true => 'yes',
  1266. false => 'no',
  1267. },
  1268. },
  1269. ],
  1270. },
  1271. preferences: {
  1272. permission: ['admin.security'],
  1273. prio: 20,
  1274. },
  1275. state: false,
  1276. frontend: false
  1277. )
  1278. Setting.create_if_not_exists(
  1279. title: __('Authentication via %s'),
  1280. name: 'auth_twitter',
  1281. area: 'Security::ThirdPartyAuthentication',
  1282. description: __('Enables user authentication via %s. Register your app first at [%s](%s).'),
  1283. options: {
  1284. form: [
  1285. {
  1286. display: '',
  1287. null: true,
  1288. name: 'auth_twitter',
  1289. tag: 'boolean',
  1290. options: {
  1291. true => 'yes',
  1292. false => 'no',
  1293. },
  1294. },
  1295. ],
  1296. },
  1297. preferences: {
  1298. controller: 'SettingsAreaSwitch',
  1299. sub: ['auth_twitter_credentials'],
  1300. title_i18n: [__('Twitter')],
  1301. description_i18n: [__('Twitter'), __('Twitter Developer Site'), 'https://dev.twitter.com/apps'],
  1302. permission: ['admin.security'],
  1303. },
  1304. state: false,
  1305. frontend: true
  1306. )
  1307. Setting.create_if_not_exists(
  1308. title: __('Twitter App Credentials'),
  1309. name: 'auth_twitter_credentials',
  1310. area: 'Security::ThirdPartyAuthentication::Twitter',
  1311. description: __('App credentials for Twitter.'),
  1312. options: {
  1313. form: [
  1314. {
  1315. display: __('Twitter Key'),
  1316. null: true,
  1317. name: 'key',
  1318. tag: 'input',
  1319. },
  1320. {
  1321. display: __('Twitter Secret'),
  1322. null: true,
  1323. name: 'secret',
  1324. tag: 'input',
  1325. },
  1326. {
  1327. display: __('Your callback URL'),
  1328. null: true,
  1329. name: 'callback_url',
  1330. tag: 'auth_provider',
  1331. provider: 'auth_twitter',
  1332. },
  1333. ],
  1334. },
  1335. state: {},
  1336. preferences: {
  1337. permission: ['admin.security'],
  1338. },
  1339. frontend: false
  1340. )
  1341. Setting.create_if_not_exists(
  1342. title: __('Authentication via %s'),
  1343. name: 'auth_facebook',
  1344. area: 'Security::ThirdPartyAuthentication',
  1345. description: __('Enables user authentication via %s. Register your app first at [%s](%s).'),
  1346. options: {
  1347. form: [
  1348. {
  1349. display: '',
  1350. null: true,
  1351. name: 'auth_facebook',
  1352. tag: 'boolean',
  1353. options: {
  1354. true => 'yes',
  1355. false => 'no',
  1356. },
  1357. },
  1358. ],
  1359. },
  1360. preferences: {
  1361. controller: 'SettingsAreaSwitch',
  1362. sub: ['auth_facebook_credentials'],
  1363. title_i18n: [__('Facebook')],
  1364. description_i18n: [__('Facebook'), __('Facebook Developer Site'), 'https://developers.facebook.com/apps/'],
  1365. permission: ['admin.security'],
  1366. },
  1367. state: false,
  1368. frontend: true
  1369. )
  1370. Setting.create_if_not_exists(
  1371. title: __('Facebook App Credentials'),
  1372. name: 'auth_facebook_credentials',
  1373. area: 'Security::ThirdPartyAuthentication::Facebook',
  1374. description: __('App credentials for Facebook.'),
  1375. options: {
  1376. form: [
  1377. {
  1378. display: __('App ID'),
  1379. null: true,
  1380. name: 'app_id',
  1381. tag: 'input',
  1382. },
  1383. {
  1384. display: __('App Secret'),
  1385. null: true,
  1386. name: 'app_secret',
  1387. tag: 'input',
  1388. },
  1389. {
  1390. display: __('Your callback URL'),
  1391. null: true,
  1392. name: 'callback_url',
  1393. tag: 'auth_provider',
  1394. provider: 'auth_facebook',
  1395. },
  1396. ],
  1397. },
  1398. state: {},
  1399. preferences: {
  1400. permission: ['admin.security'],
  1401. },
  1402. frontend: false
  1403. )
  1404. Setting.create_if_not_exists(
  1405. title: __('Authentication via %s'),
  1406. name: 'auth_google_oauth2',
  1407. area: 'Security::ThirdPartyAuthentication',
  1408. description: __('Enables user authentication via %s. Register your app first at [%s](%s).'),
  1409. options: {
  1410. form: [
  1411. {
  1412. display: '',
  1413. null: true,
  1414. name: 'auth_google_oauth2',
  1415. tag: 'boolean',
  1416. options: {
  1417. true => 'yes',
  1418. false => 'no',
  1419. },
  1420. },
  1421. ],
  1422. },
  1423. preferences: {
  1424. controller: 'SettingsAreaSwitch',
  1425. sub: ['auth_google_oauth2_credentials'],
  1426. title_i18n: [__('Google')],
  1427. description_i18n: [__('Google'), __('Google API Console Site'), 'https://console.cloud.google.com/apis/credentials'],
  1428. permission: ['admin.security'],
  1429. },
  1430. state: false,
  1431. frontend: true
  1432. )
  1433. Setting.create_if_not_exists(
  1434. title: __('Google App Credentials'),
  1435. name: 'auth_google_oauth2_credentials',
  1436. area: 'Security::ThirdPartyAuthentication::Google',
  1437. description: __('Enables user authentication via Google.'),
  1438. options: {
  1439. form: [
  1440. {
  1441. display: __('Client ID'),
  1442. null: true,
  1443. name: 'client_id',
  1444. tag: 'input',
  1445. },
  1446. {
  1447. display: __('Client Secret'),
  1448. null: true,
  1449. name: 'client_secret',
  1450. tag: 'input',
  1451. },
  1452. {
  1453. display: __('Your callback URL'),
  1454. null: true,
  1455. name: 'callback_url',
  1456. tag: 'auth_provider',
  1457. provider: 'auth_google_oauth2',
  1458. },
  1459. ],
  1460. },
  1461. state: {},
  1462. preferences: {
  1463. permission: ['admin.security'],
  1464. },
  1465. frontend: false
  1466. )
  1467. Setting.create_if_not_exists(
  1468. title: __('Authentication via %s'),
  1469. name: 'auth_linkedin',
  1470. area: 'Security::ThirdPartyAuthentication',
  1471. description: __('Enables user authentication via %s. Register your app first at [%s](%s).'),
  1472. options: {
  1473. form: [
  1474. {
  1475. display: '',
  1476. null: true,
  1477. name: 'auth_linkedin',
  1478. tag: 'boolean',
  1479. options: {
  1480. true => 'yes',
  1481. false => 'no',
  1482. },
  1483. },
  1484. ],
  1485. },
  1486. preferences: {
  1487. controller: 'SettingsAreaSwitch',
  1488. sub: ['auth_linkedin_credentials'],
  1489. title_i18n: [__('LinkedIn')],
  1490. description_i18n: [__('LinkedIn'), __('LinkedIn Developer Site'), 'https://www.linkedin.com/developer/apps'],
  1491. permission: ['admin.security'],
  1492. },
  1493. state: false,
  1494. frontend: true
  1495. )
  1496. Setting.create_if_not_exists(
  1497. title: __('LinkedIn App Credentials'),
  1498. name: 'auth_linkedin_credentials',
  1499. area: 'Security::ThirdPartyAuthentication::Linkedin',
  1500. description: __('Enables user authentication via LinkedIn.'),
  1501. options: {
  1502. form: [
  1503. {
  1504. display: __('App ID'),
  1505. null: true,
  1506. name: 'app_id',
  1507. tag: 'input',
  1508. },
  1509. {
  1510. display: __('App Secret'),
  1511. null: true,
  1512. name: 'app_secret',
  1513. tag: 'input',
  1514. },
  1515. {
  1516. display: __('Your callback URL'),
  1517. null: true,
  1518. name: 'callback_url',
  1519. tag: 'auth_provider',
  1520. provider: 'auth_linkedin',
  1521. },
  1522. ],
  1523. },
  1524. state: {},
  1525. preferences: {
  1526. permission: ['admin.security'],
  1527. },
  1528. frontend: false
  1529. )
  1530. Setting.create_if_not_exists(
  1531. title: __('Authentication via %s'),
  1532. name: 'auth_github',
  1533. area: 'Security::ThirdPartyAuthentication',
  1534. description: __('Enables user authentication via %s. Register your app first at [%s](%s).'),
  1535. options: {
  1536. form: [
  1537. {
  1538. display: '',
  1539. null: true,
  1540. name: 'auth_github',
  1541. tag: 'boolean',
  1542. options: {
  1543. true => 'yes',
  1544. false => 'no',
  1545. },
  1546. },
  1547. ],
  1548. },
  1549. preferences: {
  1550. controller: 'SettingsAreaSwitch',
  1551. sub: ['auth_github_credentials'],
  1552. title_i18n: [__('GitHub')],
  1553. description_i18n: [__('GitHub'), __('GitHub OAuth Applications'), 'https://github.com/settings/applications'],
  1554. permission: ['admin.security'],
  1555. },
  1556. state: false,
  1557. frontend: true
  1558. )
  1559. Setting.create_if_not_exists(
  1560. title: __('GitHub App Credentials'),
  1561. name: 'auth_github_credentials',
  1562. area: 'Security::ThirdPartyAuthentication::Github',
  1563. description: __('Enables user authentication via GitHub.'),
  1564. options: {
  1565. form: [
  1566. {
  1567. display: __('App ID'),
  1568. null: true,
  1569. name: 'app_id',
  1570. tag: 'input',
  1571. },
  1572. {
  1573. display: __('App Secret'),
  1574. null: true,
  1575. name: 'app_secret',
  1576. tag: 'input',
  1577. },
  1578. {
  1579. display: __('Your callback URL'),
  1580. null: true,
  1581. name: 'callback_url',
  1582. tag: 'auth_provider',
  1583. provider: 'auth_github',
  1584. },
  1585. ],
  1586. },
  1587. state: {},
  1588. preferences: {
  1589. permission: ['admin.security'],
  1590. },
  1591. frontend: false
  1592. )
  1593. Setting.create_if_not_exists(
  1594. title: __('Authentication via %s'),
  1595. name: 'auth_gitlab',
  1596. area: 'Security::ThirdPartyAuthentication',
  1597. description: __('Enables user authentication via %s. Register your app first at [%s](%s).'),
  1598. options: {
  1599. form: [
  1600. {
  1601. display: '',
  1602. null: true,
  1603. name: 'auth_gitlab',
  1604. tag: 'boolean',
  1605. options: {
  1606. true => 'yes',
  1607. false => 'no',
  1608. },
  1609. },
  1610. ],
  1611. },
  1612. preferences: {
  1613. controller: 'SettingsAreaSwitch',
  1614. sub: ['auth_gitlab_credentials'],
  1615. title_i18n: [__('GitLab')],
  1616. description_i18n: [__('GitLab'), __('GitLab Applications'), 'https://your-gitlab-host/admin/applications'],
  1617. permission: ['admin.security'],
  1618. },
  1619. state: false,
  1620. frontend: true
  1621. )
  1622. Setting.create_if_not_exists(
  1623. title: __('GitLab App Credentials'),
  1624. name: 'auth_gitlab_credentials',
  1625. area: 'Security::ThirdPartyAuthentication::GitLab',
  1626. description: __('Enables user authentication via GitLab.'),
  1627. options: {
  1628. form: [
  1629. {
  1630. display: __('App ID'),
  1631. null: true,
  1632. name: 'app_id',
  1633. tag: 'input',
  1634. },
  1635. {
  1636. display: __('App Secret'),
  1637. null: true,
  1638. name: 'app_secret',
  1639. tag: 'input',
  1640. },
  1641. {
  1642. display: __('Site'),
  1643. null: true,
  1644. name: 'site',
  1645. tag: 'input',
  1646. placeholder: 'https://gitlab.YOURDOMAIN.com/',
  1647. },
  1648. {
  1649. display: __('Your callback URL'),
  1650. null: true,
  1651. name: 'callback_url',
  1652. tag: 'auth_provider',
  1653. provider: 'auth_gitlab',
  1654. },
  1655. ],
  1656. },
  1657. state: {},
  1658. preferences: {
  1659. permission: ['admin.security'],
  1660. },
  1661. frontend: false
  1662. )
  1663. Setting.create_if_not_exists(
  1664. title: __('Authentication via %s'),
  1665. name: 'auth_microsoft_office365',
  1666. area: 'Security::ThirdPartyAuthentication',
  1667. description: __('Enables user authentication via %s. Register your app first at [%s](%s).'),
  1668. options: {
  1669. form: [
  1670. {
  1671. display: '',
  1672. null: true,
  1673. name: 'auth_microsoft_office365',
  1674. tag: 'boolean',
  1675. options: {
  1676. true => 'yes',
  1677. false => 'no',
  1678. },
  1679. },
  1680. ],
  1681. },
  1682. preferences: {
  1683. controller: 'SettingsAreaSwitch',
  1684. sub: ['auth_microsoft_office365_credentials'],
  1685. title_i18n: [__('Microsoft')],
  1686. description_i18n: [__('Microsoft'), __('Microsoft Application Registration Portal'), 'https://portal.azure.com'],
  1687. permission: ['admin.security'],
  1688. },
  1689. state: false,
  1690. frontend: true
  1691. )
  1692. Setting.create_if_not_exists(
  1693. title: __('Microsoft 365 App Credentials'),
  1694. name: 'auth_microsoft_office365_credentials',
  1695. area: 'Security::ThirdPartyAuthentication::Office365',
  1696. description: __('Enables user authentication via Microsoft 365.'),
  1697. options: {
  1698. form: [
  1699. {
  1700. display: __('App ID'),
  1701. null: true,
  1702. name: 'app_id',
  1703. tag: 'input',
  1704. },
  1705. {
  1706. display: __('App Secret'),
  1707. null: true,
  1708. name: 'app_secret',
  1709. tag: 'input',
  1710. },
  1711. {
  1712. display: __('App Tenant ID'),
  1713. null: true,
  1714. name: 'app_tenant',
  1715. tag: 'input',
  1716. placeholder: 'common',
  1717. },
  1718. {
  1719. display: __('Your callback URL'),
  1720. null: true,
  1721. name: 'callback_url',
  1722. tag: 'auth_provider',
  1723. provider: 'auth_microsoft_office365',
  1724. },
  1725. ],
  1726. },
  1727. state: {},
  1728. preferences: {
  1729. permission: ['admin.security'],
  1730. },
  1731. frontend: false
  1732. )
  1733. Setting.create_if_not_exists(
  1734. title: __('Authentication via %s'),
  1735. name: 'auth_weibo',
  1736. area: 'Security::ThirdPartyAuthentication',
  1737. description: __('Enables user authentication via %s. Register your app first at [%s](%s).'),
  1738. options: {
  1739. form: [
  1740. {
  1741. display: '',
  1742. null: true,
  1743. name: 'auth_weibo',
  1744. tag: 'boolean',
  1745. options: {
  1746. true => 'yes',
  1747. false => 'no',
  1748. },
  1749. },
  1750. ],
  1751. },
  1752. preferences: {
  1753. controller: 'SettingsAreaSwitch',
  1754. sub: ['auth_weibo_credentials'],
  1755. title_i18n: [__('Weibo')],
  1756. description_i18n: [__('Sina Weibo'), __('Sina Weibo Open Portal'), 'http://open.weibo.com'],
  1757. permission: ['admin.security'],
  1758. },
  1759. state: false,
  1760. frontend: true
  1761. )
  1762. Setting.create_if_not_exists(
  1763. title: __('Weibo App Credentials'),
  1764. name: 'auth_weibo_credentials',
  1765. area: 'Security::ThirdPartyAuthentication::Weibo',
  1766. description: __('Enables user authentication via Weibo.'),
  1767. options: {
  1768. form: [
  1769. {
  1770. display: __('App ID'),
  1771. null: true,
  1772. name: 'client_id',
  1773. tag: 'input',
  1774. },
  1775. {
  1776. display: __('App Secret'),
  1777. null: true,
  1778. name: 'client_secret',
  1779. tag: 'input',
  1780. },
  1781. {
  1782. display: __('Your callback URL'),
  1783. null: true,
  1784. name: 'callback_url',
  1785. tag: 'auth_provider',
  1786. provider: 'auth_weibo',
  1787. },
  1788. ],
  1789. },
  1790. state: {},
  1791. preferences: {
  1792. permission: ['admin.security'],
  1793. },
  1794. frontend: false
  1795. )
  1796. Setting.create_if_not_exists(
  1797. title: __('Authentication via %s'),
  1798. name: 'auth_saml',
  1799. area: 'Security::ThirdPartyAuthentication',
  1800. description: __('Enables user authentication via %s.'),
  1801. options: {
  1802. form: [
  1803. {
  1804. display: '',
  1805. null: true,
  1806. name: 'auth_saml',
  1807. tag: 'boolean',
  1808. options: {
  1809. true => 'yes',
  1810. false => 'no',
  1811. },
  1812. },
  1813. ],
  1814. },
  1815. preferences: {
  1816. controller: 'SettingsAreaSwitch',
  1817. sub: ['auth_saml_credentials'],
  1818. title_i18n: [__('SAML')],
  1819. description_i18n: [__('SAML')],
  1820. permission: ['admin.security'],
  1821. },
  1822. state: false,
  1823. frontend: true
  1824. )
  1825. Setting.create_if_not_exists(
  1826. title: __('SAML App Credentials'),
  1827. name: 'auth_saml_credentials',
  1828. area: 'Security::ThirdPartyAuthentication::SAML',
  1829. description: __('Enables user authentication via SAML.'),
  1830. options: {
  1831. form: [
  1832. {
  1833. display: __('Display name'),
  1834. null: true,
  1835. name: 'display_name',
  1836. tag: 'input',
  1837. placeholder: __('SAML'),
  1838. },
  1839. {
  1840. display: __('IDP SSO target URL'),
  1841. null: true,
  1842. name: 'idp_sso_target_url',
  1843. tag: 'input',
  1844. placeholder: 'https://capriza.github.io/samling/samling.html',
  1845. required: true,
  1846. },
  1847. {
  1848. display: __('IDP Single Logout target URL'),
  1849. null: true,
  1850. name: 'idp_slo_service_url',
  1851. tag: 'input',
  1852. placeholder: 'https://capriza.github.io/samling/slo.html',
  1853. required: true,
  1854. },
  1855. {
  1856. display: __('IDP certificate'),
  1857. null: true,
  1858. name: 'idp_cert',
  1859. tag: 'textarea',
  1860. placeholder: '-----BEGIN CERTIFICATE-----\n...-----END CERTIFICATE-----',
  1861. required: true,
  1862. },
  1863. {
  1864. display: __('IDP certificate fingerprint'),
  1865. null: true,
  1866. name: 'idp_cert_fingerprint',
  1867. tag: 'input',
  1868. placeholder: 'E7:91:B2:E1:...',
  1869. help: __('Please note that this attribute is deprecated within one of the next versions of Zammad. Use the IDP certificate instead.'),
  1870. },
  1871. {
  1872. display: __('Name Identifier Format'),
  1873. null: true,
  1874. name: 'name_identifier_format',
  1875. tag: 'input',
  1876. placeholder: 'urn:oasis:names:tc:SAML:1.1:nameid-format:emailAddress',
  1877. required: true,
  1878. },
  1879. {
  1880. display: __('UID Attribute Name'),
  1881. null: true,
  1882. name: 'uid_attribute',
  1883. tag: 'input',
  1884. placeholder: '',
  1885. help: __('Attribute that uniquely identifies the user. If unset, the name identifier returned by the IDP is used.')
  1886. },
  1887. {
  1888. display: 'SSL verification',
  1889. name: 'ssl_verify',
  1890. tag: 'boolean',
  1891. options: {
  1892. true => 'yes',
  1893. false => 'no',
  1894. },
  1895. default: true,
  1896. help: __('Turning off SSL verification is a security risk and should be used only temporary. Use this option at your own risk!'),
  1897. },
  1898. {
  1899. display: __('Signing & Encrypting'),
  1900. null: true,
  1901. name: 'security',
  1902. tag: 'select',
  1903. options: {
  1904. 'off' => __('None'),
  1905. 'on' => __('Signing & Encrypting'),
  1906. 'sign' => __('Only Signing'),
  1907. 'encrypt' => __('Only Encrypting'),
  1908. },
  1909. },
  1910. {
  1911. display: __('Certificate (PEM)'),
  1912. null: true,
  1913. name: 'certificate',
  1914. tag: 'textarea',
  1915. placeholder: '-----BEGIN CERTIFICATE-----\n...-----END CERTIFICATE-----',
  1916. },
  1917. {
  1918. display: __('Private key (PEM)'),
  1919. null: true,
  1920. name: 'private_key',
  1921. tag: 'textarea',
  1922. placeholder: '-----BEGIN RSA PRIVATE KEY-----\n...-----END RSA PRIVATE KEY-----', # gitleaks:allow
  1923. },
  1924. {
  1925. display: __('Private key secret'),
  1926. null: true,
  1927. name: 'private_key_secret',
  1928. tag: 'input',
  1929. type: 'password',
  1930. single: true,
  1931. placeholder: '',
  1932. },
  1933. {
  1934. display: __('Your callback URL'),
  1935. null: true,
  1936. name: 'callback_url',
  1937. tag: 'auth_provider',
  1938. provider: 'auth_saml',
  1939. },
  1940. ],
  1941. },
  1942. state: {},
  1943. preferences: {
  1944. permission: ['admin.security'],
  1945. validations: [
  1946. 'Setting::Validation::Saml::RequiredAttributes',
  1947. 'Setting::Validation::Saml::TLS',
  1948. 'Setting::Validation::Saml::Security',
  1949. ],
  1950. },
  1951. frontend: false
  1952. )
  1953. Setting.create_if_not_exists(
  1954. title: __('Minimum length'),
  1955. name: 'password_min_size',
  1956. area: 'Security::Password',
  1957. description: __('Password needs to have at least a minimal number of characters.'),
  1958. options: {
  1959. form: [
  1960. {
  1961. display: '',
  1962. null: true,
  1963. name: 'password_min_size',
  1964. tag: 'select',
  1965. options: {
  1966. 4 => ' 4',
  1967. 5 => ' 5',
  1968. 6 => ' 6',
  1969. 7 => ' 7',
  1970. 8 => ' 8',
  1971. 9 => ' 9',
  1972. 10 => '10',
  1973. 11 => '11',
  1974. 12 => '12',
  1975. 13 => '13',
  1976. 14 => '14',
  1977. 15 => '15',
  1978. 16 => '16',
  1979. 17 => '17',
  1980. 18 => '18',
  1981. 19 => '19',
  1982. 20 => '20',
  1983. },
  1984. },
  1985. ],
  1986. },
  1987. state: 10,
  1988. preferences: {
  1989. permission: ['admin.security'],
  1990. },
  1991. frontend: false
  1992. )
  1993. Setting.create_if_not_exists(
  1994. title: __('2 lower case and 2 upper case characters'),
  1995. name: 'password_min_2_lower_2_upper_characters',
  1996. area: 'Security::Password',
  1997. description: __('Password needs to contain 2 lower case and 2 upper case characters.'),
  1998. options: {
  1999. form: [
  2000. {
  2001. display: '',
  2002. null: true,
  2003. name: 'password_min_2_lower_2_upper_characters',
  2004. tag: 'select',
  2005. options: {
  2006. 1 => 'yes',
  2007. 0 => 'no',
  2008. },
  2009. translate: true,
  2010. },
  2011. ],
  2012. },
  2013. state: 1,
  2014. preferences: {
  2015. permission: ['admin.security'],
  2016. },
  2017. frontend: false
  2018. )
  2019. Setting.create_if_not_exists(
  2020. title: __('Digit required'),
  2021. name: 'password_need_digit',
  2022. area: 'Security::Password',
  2023. description: __('Password needs to contain at least one digit.'),
  2024. options: {
  2025. form: [
  2026. {
  2027. display: __('Needed'),
  2028. null: true,
  2029. name: 'password_need_digit',
  2030. tag: 'select',
  2031. options: {
  2032. 1 => 'yes',
  2033. 0 => 'no',
  2034. },
  2035. translate: true,
  2036. },
  2037. ],
  2038. },
  2039. state: 1,
  2040. preferences: {
  2041. permission: ['admin.security'],
  2042. },
  2043. frontend: false
  2044. )
  2045. Setting.create_if_not_exists(
  2046. title: __('Special character required'),
  2047. name: 'password_need_special_character',
  2048. area: 'Security::Password',
  2049. description: __('Password needs to contain at least one special character.'),
  2050. options: {
  2051. form: [
  2052. {
  2053. display: __('Needed'),
  2054. null: true,
  2055. name: 'password_need_special_character',
  2056. tag: 'select',
  2057. options: {
  2058. 1 => 'yes',
  2059. 0 => 'no',
  2060. },
  2061. translate: true,
  2062. },
  2063. ],
  2064. },
  2065. state: 0,
  2066. preferences: {
  2067. permission: ['admin.security'],
  2068. },
  2069. frontend: false
  2070. )
  2071. Setting.create_if_not_exists(
  2072. title: __('Maximum failed logins'),
  2073. name: 'password_max_login_failed',
  2074. area: 'Security::Password',
  2075. description: __('Defines after how many failed logins accounts will be deactivated.'),
  2076. options: {
  2077. form: [
  2078. {
  2079. display: '',
  2080. null: true,
  2081. name: 'password_max_login_failed',
  2082. tag: 'select',
  2083. options: {
  2084. 4 => ' 4',
  2085. 5 => ' 5',
  2086. 6 => ' 6',
  2087. 7 => ' 7',
  2088. 8 => ' 8',
  2089. 9 => ' 9',
  2090. 10 => '10',
  2091. 11 => '11',
  2092. 13 => '13',
  2093. 14 => '14',
  2094. 15 => '15',
  2095. 16 => '16',
  2096. 17 => '17',
  2097. 18 => '18',
  2098. 19 => '19',
  2099. 20 => '20',
  2100. },
  2101. },
  2102. ],
  2103. },
  2104. state: 5,
  2105. preferences: {
  2106. authentication: true,
  2107. permission: ['admin.security'],
  2108. },
  2109. frontend: true
  2110. )
  2111. Setting.create_if_not_exists(
  2112. title: __('Ticket Hook'),
  2113. name: 'ticket_hook',
  2114. area: 'Ticket::Base',
  2115. description: __('The identifier for a ticket, e.g. Ticket#, Call#, MyTicket#. The default is Ticket#.'),
  2116. options: {
  2117. form: [
  2118. {
  2119. display: '',
  2120. null: false,
  2121. name: 'ticket_hook',
  2122. tag: 'input',
  2123. },
  2124. ],
  2125. },
  2126. preferences: {
  2127. prio: 1000,
  2128. render: true,
  2129. placeholder: true,
  2130. authentication: true,
  2131. permission: ['admin.ticket'],
  2132. },
  2133. state: 'Ticket#',
  2134. frontend: true
  2135. )
  2136. Setting.create_if_not_exists(
  2137. title: __('Ticket Hook Divider'),
  2138. name: 'ticket_hook_divider',
  2139. area: 'Ticket::Base::Shadow',
  2140. description: __('The divider between TicketHook and ticket number. E. g. \': \'.'),
  2141. options: {
  2142. form: [
  2143. {
  2144. display: '',
  2145. null: true,
  2146. name: 'ticket_hook_divider',
  2147. tag: 'input',
  2148. },
  2149. ],
  2150. },
  2151. state: '',
  2152. preferences: {
  2153. permission: ['admin.ticket'],
  2154. },
  2155. frontend: false
  2156. )
  2157. Setting.create_if_not_exists(
  2158. title: __('Ticket Hook Position'),
  2159. name: 'ticket_hook_position',
  2160. area: 'Ticket::Base',
  2161. description: __("The format of the subject.
  2162. * **Right** means **Some Subject [Ticket#12345]**
  2163. * **Left** means **[Ticket#12345] Some Subject**
  2164. * **None** means **Some Subject** (without ticket number), in which case it recognizes follow-ups based on email headers."),
  2165. options: {
  2166. form: [
  2167. {
  2168. display: '',
  2169. null: true,
  2170. name: 'ticket_hook_position',
  2171. tag: 'select',
  2172. translate: true,
  2173. options: {
  2174. 'left' => __('left'),
  2175. 'right' => __('right'),
  2176. 'none' => __('none'),
  2177. },
  2178. },
  2179. ],
  2180. },
  2181. state: 'right',
  2182. preferences: {
  2183. prio: 2000,
  2184. controller: 'SettingsAreaTicketHookPosition',
  2185. permission: ['admin.ticket'],
  2186. },
  2187. frontend: false
  2188. )
  2189. Setting.create_if_not_exists(
  2190. title: __('Ticket Last Contact Behaviour'),
  2191. name: 'ticket_last_contact_behaviour',
  2192. area: 'Ticket::Base',
  2193. description: __('Defines how the last customer contact time of tickets should be calculated.'),
  2194. options: {
  2195. form: [
  2196. {
  2197. display: '',
  2198. null: true,
  2199. name: 'ticket_last_contact_behaviour',
  2200. tag: 'select',
  2201. translate: true,
  2202. options: {
  2203. 'based_on_customer_reaction' => __('Use the time of the very last customer article.'),
  2204. 'check_if_agent_already_replied' => __('Use the start time of the last customer thread (which may consist of multiple articles).'),
  2205. },
  2206. },
  2207. ],
  2208. },
  2209. state: 'check_if_agent_already_replied',
  2210. preferences: {
  2211. prio: 3000,
  2212. permission: ['admin.ticket'],
  2213. },
  2214. frontend: false
  2215. )
  2216. Setting.create_if_not_exists(
  2217. title: __('Ticket Conditions Expert Mode'),
  2218. name: 'ticket_allow_expert_conditions',
  2219. area: 'Ticket::Core',
  2220. description: __('Defines if the ticket conditions editor supports complex logical expressions.'),
  2221. options: {
  2222. form: [
  2223. {
  2224. display: '',
  2225. null: true,
  2226. name: 'ticket_allow_expert_conditions',
  2227. tag: 'boolean',
  2228. options: {
  2229. true => __('yes'),
  2230. false => __('no'),
  2231. },
  2232. },
  2233. ],
  2234. },
  2235. state: true,
  2236. preferences: {
  2237. online_service_disable: true,
  2238. permission: ['admin.ticket'],
  2239. },
  2240. frontend: true
  2241. )
  2242. Setting.create_if_not_exists(
  2243. title: __('Ticket Conditions Regular Expression Operators'),
  2244. name: 'ticket_conditions_allow_regular_expression_operators',
  2245. area: 'Ticket::Core',
  2246. description: __('Defines if the ticket conditions editor supports regular expression operators for triggers and ticket auto assignment.'),
  2247. options: {
  2248. form: [
  2249. {
  2250. display: '',
  2251. null: true,
  2252. name: 'ticket_conditions_allow_regular_expression_operators',
  2253. tag: 'boolean',
  2254. options: {
  2255. true => __('yes'),
  2256. false => __('no'),
  2257. },
  2258. },
  2259. ],
  2260. },
  2261. state: true,
  2262. preferences: {
  2263. online_service_disable: true,
  2264. permission: ['admin.ticket'],
  2265. },
  2266. frontend: true
  2267. )
  2268. Setting.create_if_not_exists(
  2269. title: __('Ticket Number Format'),
  2270. name: 'ticket_number',
  2271. area: 'Ticket::Number',
  2272. description: __("Selects the ticket number generator module.
  2273. * **Increment** increments the ticket number, the SystemID and the counter are used with SystemID.Counter format (e.g. 1010138, 1010139).
  2274. * With **Date** the ticket numbers will be generated by the current date, the SystemID and the counter. The format looks like Year.Month.Day.SystemID.counter (e.g. 201206231010138, 201206231010139)."),
  2275. options: {
  2276. form: [
  2277. {
  2278. display: '',
  2279. null: true,
  2280. name: 'ticket_number',
  2281. tag: 'select',
  2282. translate: true,
  2283. options: {
  2284. 'Ticket::Number::Increment' => __('Increment (SystemID.Counter)'),
  2285. 'Ticket::Number::Date' => __('Date (Year.Month.Day.SystemID.Counter)'),
  2286. },
  2287. },
  2288. ],
  2289. },
  2290. state: 'Ticket::Number::Increment',
  2291. preferences: {
  2292. settings_included: %w[ticket_number_increment ticket_number_date],
  2293. controller: 'SettingsAreaTicketNumber',
  2294. permission: ['admin.ticket'],
  2295. },
  2296. frontend: false
  2297. )
  2298. Setting.create_if_not_exists(
  2299. title: __('Ticket Number Increment'),
  2300. name: 'ticket_number_increment',
  2301. area: 'Ticket::Number',
  2302. description: '-',
  2303. options: {
  2304. form: [
  2305. {
  2306. display: __('Checksum'),
  2307. null: true,
  2308. name: 'checksum',
  2309. tag: 'boolean',
  2310. options: {
  2311. true => 'yes',
  2312. false => 'no',
  2313. },
  2314. },
  2315. {
  2316. display: __('Min. size of number'),
  2317. null: true,
  2318. name: 'min_size',
  2319. tag: 'select',
  2320. options: {
  2321. 1 => ' 1',
  2322. 2 => ' 2',
  2323. 3 => ' 3',
  2324. 4 => ' 4',
  2325. 5 => ' 5',
  2326. 6 => ' 6',
  2327. 7 => ' 7',
  2328. 8 => ' 8',
  2329. 9 => ' 9',
  2330. 10 => '10',
  2331. 11 => '11',
  2332. 12 => '12',
  2333. 13 => '13',
  2334. 14 => '14',
  2335. 15 => '15',
  2336. 16 => '16',
  2337. 17 => '17',
  2338. 18 => '18',
  2339. 19 => '19',
  2340. 20 => '20',
  2341. },
  2342. },
  2343. ],
  2344. },
  2345. state: {
  2346. checksum: false,
  2347. min_size: 5,
  2348. },
  2349. preferences: {
  2350. permission: ['admin.ticket'],
  2351. hidden: true,
  2352. },
  2353. frontend: false
  2354. )
  2355. Setting.create_if_not_exists(
  2356. title: __('Ticket Number Increment Date'),
  2357. name: 'ticket_number_date',
  2358. area: 'Ticket::Number',
  2359. description: '-',
  2360. options: {
  2361. form: [
  2362. {
  2363. display: __('Checksum'),
  2364. null: true,
  2365. name: 'checksum',
  2366. tag: 'boolean',
  2367. options: {
  2368. true => 'yes',
  2369. false => 'no',
  2370. },
  2371. },
  2372. ],
  2373. },
  2374. state: {
  2375. checksum: false
  2376. },
  2377. preferences: {
  2378. permission: ['admin.ticket'],
  2379. hidden: true,
  2380. },
  2381. frontend: false
  2382. )
  2383. Setting.create_if_not_exists(
  2384. title: __('Auto Assignment'),
  2385. name: 'ticket_auto_assignment',
  2386. area: 'Web::Base',
  2387. description: __('Enable ticket auto assignment.'),
  2388. options: {
  2389. form: [
  2390. {
  2391. display: '',
  2392. null: true,
  2393. name: 'ticket_auto_assignment',
  2394. tag: 'boolean',
  2395. options: {
  2396. true => 'yes',
  2397. false => 'no',
  2398. },
  2399. },
  2400. ],
  2401. },
  2402. preferences: {
  2403. authentication: true,
  2404. permission: ['admin.ticket_auto_assignment'],
  2405. },
  2406. state: false,
  2407. frontend: true
  2408. )
  2409. Setting.create_if_not_exists(
  2410. title: __('Auto Assignment Selector'),
  2411. name: 'ticket_auto_assignment_selector',
  2412. area: 'Web::Base',
  2413. description: __('Enable auto assignment for following matching tickets.'),
  2414. options: {
  2415. form: [
  2416. {},
  2417. ],
  2418. },
  2419. preferences: {
  2420. authentication: true,
  2421. permission: ['admin.ticket_auto_assignment'],
  2422. },
  2423. state: { condition: { 'ticket.state_id' => { operator: 'is', value: Ticket::State.by_category_ids(:work_on) } } },
  2424. frontend: true
  2425. )
  2426. Setting.create_or_update(
  2427. title: __('Auto Assignment Ignored Users'),
  2428. name: 'ticket_auto_assignment_user_ids_ignore',
  2429. area: 'Web::Base',
  2430. description: __('Define an exception of "automatic assignment" for certain users (e.g. executives).'),
  2431. options: {
  2432. form: [
  2433. {},
  2434. ],
  2435. },
  2436. preferences: {
  2437. authentication: true,
  2438. permission: ['admin.ticket_auto_assignment'],
  2439. },
  2440. state: [],
  2441. frontend: true
  2442. )
  2443. Setting.create_or_update(
  2444. title: __('Default Ticket Agent Notifications'),
  2445. name: 'ticket_agent_default_notifications',
  2446. area: 'Ticket::Core',
  2447. description: __('Define the default agent notifications for new users.'),
  2448. options: {
  2449. form: [
  2450. {},
  2451. ],
  2452. },
  2453. preferences: {
  2454. authentication: true,
  2455. permission: ['admin.ticket'],
  2456. },
  2457. state: {
  2458. create: {
  2459. criteria: {
  2460. owned_by_me: true,
  2461. owned_by_nobody: true,
  2462. subscribed: true,
  2463. no: false,
  2464. },
  2465. channel: {
  2466. email: true,
  2467. online: true,
  2468. }
  2469. },
  2470. update: {
  2471. criteria: {
  2472. owned_by_me: true,
  2473. owned_by_nobody: true,
  2474. subscribed: true,
  2475. no: false,
  2476. },
  2477. channel: {
  2478. email: true,
  2479. online: true,
  2480. }
  2481. },
  2482. reminder_reached: {
  2483. criteria: {
  2484. owned_by_me: true,
  2485. owned_by_nobody: false,
  2486. subscribed: false,
  2487. no: false,
  2488. },
  2489. channel: {
  2490. email: true,
  2491. online: true,
  2492. }
  2493. },
  2494. escalation: {
  2495. criteria: {
  2496. owned_by_me: true,
  2497. owned_by_nobody: false,
  2498. subscribed: false,
  2499. no: false,
  2500. },
  2501. channel: {
  2502. email: true,
  2503. online: true,
  2504. }
  2505. }
  2506. },
  2507. frontend: true
  2508. )
  2509. Setting.create_if_not_exists(
  2510. title: __('Detect Duplicate Ticket Creation'),
  2511. name: 'ticket_duplicate_detection',
  2512. area: 'Web::TicketDuplicateDetection',
  2513. description: __('Enables a warning to users during ticket creation if there is an existing ticket with the same attributes.'),
  2514. options: {
  2515. form: [
  2516. {
  2517. display: '',
  2518. null: true,
  2519. name: 'ticket_duplicate_detection',
  2520. tag: 'boolean',
  2521. options: {
  2522. true => 'yes',
  2523. false => 'no',
  2524. },
  2525. },
  2526. ],
  2527. },
  2528. preferences: {
  2529. authentication: true,
  2530. permission: ['admin.ticket_duplicate_detection'],
  2531. },
  2532. state: false,
  2533. frontend: true
  2534. )
  2535. Setting.create_if_not_exists(
  2536. title: __('Attributes to compare'),
  2537. name: 'ticket_duplicate_detection_attributes',
  2538. area: 'Web::TicketDuplicateDetection',
  2539. description: __('Defines which ticket attributes are checked before creating a ticket.'),
  2540. options: {
  2541. form: [
  2542. {},
  2543. ],
  2544. },
  2545. preferences: {
  2546. authentication: true,
  2547. permission: ['admin.ticket_duplicate_detection'],
  2548. },
  2549. state: [],
  2550. frontend: true
  2551. )
  2552. Setting.create_if_not_exists(
  2553. title: __('Warning title'),
  2554. name: 'ticket_duplicate_detection_title',
  2555. area: 'Web::TicketDuplicateDetection',
  2556. description: __('Defines the warning title that is shown when a matching ticket is present.'),
  2557. options: {
  2558. form: [
  2559. {},
  2560. ],
  2561. },
  2562. preferences: {
  2563. authentication: true,
  2564. permission: ['admin.ticket_duplicate_detection'],
  2565. },
  2566. state: __('Similar tickets found'),
  2567. frontend: true
  2568. )
  2569. Setting.create_if_not_exists(
  2570. title: __('Warning message'),
  2571. name: 'ticket_duplicate_detection_body',
  2572. area: 'Web::TicketDuplicateDetection',
  2573. description: __('Defines the warning message that is shown when a matching ticket is present.'),
  2574. options: {
  2575. form: [
  2576. {},
  2577. ],
  2578. },
  2579. preferences: {
  2580. authentication: true,
  2581. permission: ['admin.ticket_duplicate_detection'],
  2582. },
  2583. state: __('Tickets with the same attributes were found.'),
  2584. frontend: true
  2585. )
  2586. Setting.create_if_not_exists(
  2587. title: __('Show to user roles'),
  2588. name: 'ticket_duplicate_detection_role_ids',
  2589. area: 'Web::TicketDuplicateDetection',
  2590. description: __('Defines which user roles will receive a warning in case of matching tickets.'),
  2591. options: {
  2592. form: [
  2593. {},
  2594. ],
  2595. },
  2596. preferences: {
  2597. authentication: true,
  2598. permission: ['admin.ticket_duplicate_detection'],
  2599. },
  2600. state: [2],
  2601. frontend: true
  2602. )
  2603. Setting.create_if_not_exists(
  2604. title: __('Show matching tickets in the warning'),
  2605. name: 'ticket_duplicate_detection_show_tickets',
  2606. area: 'Web::TicketDuplicateDetection',
  2607. description: __('Defines whether the matching tickets are shown in case of already existing tickets.'),
  2608. options: {
  2609. form: [
  2610. {},
  2611. ],
  2612. },
  2613. preferences: {
  2614. authentication: true,
  2615. permission: ['admin.ticket_duplicate_detection'],
  2616. },
  2617. state: true,
  2618. frontend: true
  2619. )
  2620. Setting.create_if_not_exists(
  2621. title: __('Permission level for looking up tickets'),
  2622. name: 'ticket_duplicate_detection_permission_level',
  2623. area: 'Web::TicketDuplicateDetection',
  2624. description: __('Defines the permission level used for lookups.'),
  2625. options: {
  2626. form: [
  2627. {},
  2628. ],
  2629. },
  2630. preferences: {
  2631. authentication: true,
  2632. permission: ['admin.ticket_duplicate_detection'],
  2633. },
  2634. state: 'user',
  2635. frontend: true
  2636. )
  2637. Setting.create_if_not_exists(
  2638. title: __('Match tickets in following states'),
  2639. name: 'ticket_duplicate_detection_search',
  2640. area: 'Web::TicketDuplicateDetection',
  2641. description: __('Defines the ticket states used for lookups.'),
  2642. options: {
  2643. form: [
  2644. {},
  2645. ],
  2646. },
  2647. state: 'all',
  2648. preferences: {
  2649. authentication: true,
  2650. permission: ['admin.ticket_duplicate_detection']
  2651. },
  2652. frontend: true
  2653. )
  2654. Setting.create_if_not_exists(
  2655. title: __('Ticket Number ignore system_id'),
  2656. name: 'ticket_number_ignore_system_id',
  2657. area: 'Ticket::Core',
  2658. description: '-',
  2659. options: {
  2660. form: [
  2661. {
  2662. display: __('Ignore system_id'),
  2663. null: true,
  2664. name: 'ticket_number_ignore_system_id',
  2665. tag: 'boolean',
  2666. options: {
  2667. true => 'yes',
  2668. false => 'no',
  2669. },
  2670. },
  2671. ],
  2672. },
  2673. state: false,
  2674. preferences: {
  2675. permission: ['admin.ticket'],
  2676. hidden: true,
  2677. },
  2678. frontend: false
  2679. )
  2680. Setting.create_if_not_exists(
  2681. title: __('Recursive Ticket Triggers'),
  2682. name: 'ticket_trigger_recursive',
  2683. area: 'Ticket::Core',
  2684. description: __('Activate the recursive processing of ticket triggers.'),
  2685. options: {
  2686. form: [
  2687. {
  2688. display: __('Recursive Ticket Triggers'),
  2689. null: true,
  2690. name: 'ticket_trigger_recursive',
  2691. tag: 'boolean',
  2692. options: {
  2693. true => 'yes',
  2694. false => 'no',
  2695. },
  2696. },
  2697. ],
  2698. },
  2699. state: false,
  2700. preferences: {
  2701. permission: ['admin.ticket'],
  2702. hidden: true,
  2703. },
  2704. frontend: false
  2705. )
  2706. Setting.create_if_not_exists(
  2707. title: __('Ticket Trigger Loop Protection Articles per Ticket'),
  2708. name: 'ticket_trigger_loop_protection_articles_per_ticket',
  2709. area: 'Ticket::Core',
  2710. description: __('Defines the configuration how many articles can be created in a minute range per ticket.'),
  2711. options: {},
  2712. state: {
  2713. 10 => 10,
  2714. 30 => 15,
  2715. 60 => 25,
  2716. 180 => 50,
  2717. 600 => 100,
  2718. },
  2719. preferences: {
  2720. permission: ['admin.ticket'],
  2721. hidden: true,
  2722. },
  2723. frontend: false
  2724. )
  2725. Setting.create_if_not_exists(
  2726. title: __('Ticket Trigger Loop Protection Articles Total'),
  2727. name: 'ticket_trigger_loop_protection_articles_total',
  2728. area: 'Ticket::Core',
  2729. description: __('Defines the configuration how many articles can be created in a minute range globally.'),
  2730. options: {},
  2731. state: {
  2732. 10 => 30,
  2733. 30 => 60,
  2734. 60 => 120,
  2735. 180 => 240,
  2736. 600 => 360,
  2737. },
  2738. preferences: {
  2739. permission: ['admin.ticket'],
  2740. hidden: true,
  2741. },
  2742. frontend: false
  2743. )
  2744. Setting.create_if_not_exists(
  2745. title: __('Recursive Ticket Triggers Loop Max.'),
  2746. name: 'ticket_trigger_recursive_max_loop',
  2747. area: 'Ticket::Core',
  2748. description: __('Maximum number of recursively executed triggers.'),
  2749. options: {
  2750. form: [
  2751. {
  2752. display: __('Recursive Ticket Triggers'),
  2753. null: true,
  2754. name: 'ticket_trigger_recursive_max_loop',
  2755. tag: 'select',
  2756. options: {
  2757. 1 => ' 1',
  2758. 2 => ' 2',
  2759. 3 => ' 3',
  2760. 4 => ' 4',
  2761. 5 => ' 5',
  2762. 6 => ' 6',
  2763. 7 => ' 7',
  2764. 8 => ' 8',
  2765. 9 => ' 9',
  2766. 10 => '10',
  2767. 11 => '11',
  2768. 12 => '12',
  2769. 13 => '13',
  2770. 14 => '14',
  2771. 15 => '15',
  2772. 16 => '16',
  2773. 17 => '17',
  2774. 18 => '18',
  2775. 19 => '19',
  2776. 20 => '20',
  2777. },
  2778. },
  2779. ],
  2780. },
  2781. state: 10,
  2782. preferences: {
  2783. permission: ['admin.ticket'],
  2784. hidden: true,
  2785. },
  2786. frontend: false
  2787. )
  2788. Setting.create_if_not_exists(
  2789. title: __('Enable Ticket creation'),
  2790. name: 'customer_ticket_create',
  2791. area: 'CustomerWeb::Base',
  2792. description: __('Defines if a customer can create tickets via the web interface.'),
  2793. options: {
  2794. form: [
  2795. {
  2796. display: '',
  2797. null: true,
  2798. name: 'customer_ticket_create',
  2799. tag: 'boolean',
  2800. options: {
  2801. true => 'yes',
  2802. false => 'no',
  2803. },
  2804. },
  2805. ],
  2806. },
  2807. state: true,
  2808. preferences: {
  2809. authentication: true,
  2810. permission: ['admin.channel_web'],
  2811. },
  2812. frontend: true
  2813. )
  2814. Setting.create_if_not_exists(
  2815. title: __('Group selection for Ticket creation'),
  2816. name: 'customer_ticket_create_group_ids',
  2817. area: 'CustomerWeb::Base',
  2818. description: __('Defines groups for which a customer can create tickets via web interface. No selection means all groups are available.'),
  2819. options: {
  2820. form: [
  2821. {
  2822. display: '',
  2823. null: true,
  2824. name: 'group_ids',
  2825. tag: 'tree_select',
  2826. multiple: true,
  2827. relation: 'Group',
  2828. },
  2829. ],
  2830. },
  2831. state: nil,
  2832. preferences: {
  2833. authentication: true,
  2834. permission: ['admin.channel_web'],
  2835. },
  2836. frontend: true
  2837. )
  2838. Setting.create_if_not_exists(
  2839. title: __('Tab behaviour after ticket action'),
  2840. name: 'ticket_secondary_action',
  2841. area: 'CustomerWeb::Base',
  2842. description: __('Defines the tab behaviour after a ticket action.'),
  2843. options: {
  2844. form: [
  2845. {
  2846. display: '',
  2847. null: true,
  2848. name: 'ticket_secondary_action',
  2849. tag: 'boolean',
  2850. options: {
  2851. 'closeTab' => __('Close tab'),
  2852. 'closeTabOnTicketClose' => __('Close tab on ticket close'),
  2853. 'closeNextInOverview' => __('Next in overview'),
  2854. 'stayOnTab' => __('Stay on tab'),
  2855. },
  2856. },
  2857. ],
  2858. },
  2859. state: 'stayOnTab',
  2860. preferences: {
  2861. authentication: true,
  2862. permission: ['admin.channel_web'],
  2863. },
  2864. frontend: true
  2865. )
  2866. Setting.create_if_not_exists(
  2867. title: __('Enable Ticket creation'),
  2868. name: 'form_ticket_create',
  2869. area: 'Form::Base',
  2870. description: __('Defines if tickets can be created via web form.'),
  2871. options: {
  2872. form: [
  2873. {
  2874. display: '',
  2875. null: true,
  2876. name: 'form_ticket_create',
  2877. tag: 'boolean',
  2878. options: {
  2879. true => 'yes',
  2880. false => 'no',
  2881. },
  2882. },
  2883. ],
  2884. },
  2885. state: false,
  2886. preferences: {
  2887. permission: ['admin.channel_formular'],
  2888. },
  2889. frontend: false,
  2890. )
  2891. group = Group.where(active: true).first
  2892. if !group
  2893. group = Group.first
  2894. end
  2895. group_id = 1
  2896. if group
  2897. group_id = group.id
  2898. end
  2899. Setting.create_if_not_exists(
  2900. title: __('Group selection for ticket creation'),
  2901. name: 'form_ticket_create_group_id',
  2902. area: 'Form::Base',
  2903. description: __('Defines the group of tickets created via web form.'),
  2904. options: {
  2905. form: [
  2906. {
  2907. display: '',
  2908. null: true,
  2909. name: 'form_ticket_create_group_id',
  2910. tag: 'select',
  2911. relation: 'Group',
  2912. },
  2913. ],
  2914. },
  2915. state: group_id,
  2916. preferences: {
  2917. permission: ['admin.channel_formular'],
  2918. },
  2919. frontend: false,
  2920. )
  2921. Setting.create_if_not_exists(
  2922. title: __('Limit tickets by IP per hour'),
  2923. name: 'form_ticket_create_by_ip_per_hour',
  2924. area: 'Form::Base',
  2925. description: __('Defines a limit for how many tickets can be created via web form from one IP address per hour.'),
  2926. options: {
  2927. form: [
  2928. {
  2929. display: '',
  2930. null: true,
  2931. name: 'form_ticket_create_by_ip_per_hour',
  2932. tag: 'input',
  2933. },
  2934. ],
  2935. },
  2936. state: 20,
  2937. preferences: {
  2938. permission: ['admin.channel_formular'],
  2939. },
  2940. frontend: false,
  2941. )
  2942. Setting.create_if_not_exists(
  2943. title: __('Limit tickets by IP per day'),
  2944. name: 'form_ticket_create_by_ip_per_day',
  2945. area: 'Form::Base',
  2946. description: __('Defines a limit for how many tickets can be created via web form from one IP address per day.'),
  2947. options: {
  2948. form: [
  2949. {
  2950. display: '',
  2951. null: true,
  2952. name: 'form_ticket_create_by_ip_per_day',
  2953. tag: 'input',
  2954. },
  2955. ],
  2956. },
  2957. state: 240,
  2958. preferences: {
  2959. permission: ['admin.channel_formular'],
  2960. },
  2961. frontend: false,
  2962. )
  2963. Setting.create_if_not_exists(
  2964. title: __('Limit tickets per day'),
  2965. name: 'form_ticket_create_per_day',
  2966. area: 'Form::Base',
  2967. description: __('Defines a limit for how many tickets can be created via web form per day.'),
  2968. options: {
  2969. form: [
  2970. {
  2971. display: '',
  2972. null: true,
  2973. name: 'form_ticket_create_per_day',
  2974. tag: 'input',
  2975. },
  2976. ],
  2977. },
  2978. state: 5000,
  2979. preferences: {
  2980. permission: ['admin.channel_formular'],
  2981. },
  2982. frontend: false,
  2983. )
  2984. Setting.create_if_not_exists(
  2985. title: __('Ticket Subject Size'),
  2986. name: 'ticket_subject_size',
  2987. area: 'Email::Base',
  2988. description: __('Max. length of the subject in an email reply.'),
  2989. options: {
  2990. form: [
  2991. {
  2992. display: '',
  2993. null: false,
  2994. name: 'ticket_subject_size',
  2995. tag: 'input',
  2996. },
  2997. ],
  2998. },
  2999. state: '110',
  3000. preferences: {
  3001. permission: ['admin.channel_email', 'admin.channel_google', 'admin.channel_microsoft365'],
  3002. },
  3003. frontend: false
  3004. )
  3005. Setting.create_if_not_exists(
  3006. title: __('Ticket Subject Reply'),
  3007. name: 'ticket_subject_re',
  3008. area: 'Email::Base',
  3009. description: __('The text at the beginning of the subject in an email reply, e.g. RE, AW, or AS.'),
  3010. options: {
  3011. form: [
  3012. {
  3013. display: '',
  3014. null: true,
  3015. name: 'ticket_subject_re',
  3016. tag: 'input',
  3017. },
  3018. ],
  3019. },
  3020. state: 'RE',
  3021. preferences: {
  3022. permission: ['admin.channel_email', 'admin.channel_google', 'admin.channel_microsoft365'],
  3023. },
  3024. frontend: false
  3025. )
  3026. Setting.create_if_not_exists(
  3027. title: __('Ticket Subject Forward'),
  3028. name: 'ticket_subject_fwd',
  3029. area: 'Email::Base',
  3030. description: __('The text at the beginning of the subject in an email forward, e. g. FWD.'),
  3031. options: {
  3032. form: [
  3033. {
  3034. display: '',
  3035. null: true,
  3036. name: 'ticket_subject_fwd',
  3037. tag: 'input',
  3038. },
  3039. ],
  3040. },
  3041. state: 'FWD',
  3042. preferences: {
  3043. permission: ['admin.channel_email', 'admin.channel_google', 'admin.channel_microsoft365'],
  3044. },
  3045. frontend: false
  3046. )
  3047. Setting.create_if_not_exists(
  3048. title: __('Sender Format'),
  3049. name: 'ticket_define_email_from',
  3050. area: 'Email::Base',
  3051. description: __('Defines how the From field of emails (sent from answers and email tickets) should look like.'),
  3052. options: {
  3053. form: [
  3054. {
  3055. display: '',
  3056. null: true,
  3057. name: 'ticket_define_email_from',
  3058. tag: 'select',
  3059. options: {
  3060. SystemAddressName: __('System Address Display Name'),
  3061. AgentNameSystemAddressName: __('Agent Name + FromSeparator + System Address Display Name'),
  3062. AgentName: __('Agent Name'),
  3063. },
  3064. translate: true,
  3065. },
  3066. ],
  3067. },
  3068. state: 'AgentNameSystemAddressName',
  3069. preferences: {
  3070. permission: ['admin.channel_email', 'admin.channel_google', 'admin.channel_microsoft365'],
  3071. },
  3072. frontend: true
  3073. )
  3074. Setting.create_if_not_exists(
  3075. title: __('Sender Format Separator'),
  3076. name: 'ticket_define_email_from_separator',
  3077. area: 'Email::Base',
  3078. description: __('Defines the separator between the agent\'s real name and the given group email address.'),
  3079. options: {
  3080. form: [
  3081. {
  3082. display: '',
  3083. null: false,
  3084. name: 'ticket_define_email_from_separator',
  3085. tag: 'input',
  3086. },
  3087. ],
  3088. },
  3089. state: 'via',
  3090. preferences: {
  3091. permission: ['admin.channel_email', 'admin.channel_google', 'admin.channel_microsoft365'],
  3092. },
  3093. frontend: true
  3094. )
  3095. Setting.create_if_not_exists(
  3096. title: __('Maximum Email Size'),
  3097. name: 'postmaster_max_size',
  3098. area: 'Email::Base',
  3099. description: __('Defines the maximum accepted email size in MB.'),
  3100. options: {
  3101. form: [
  3102. {
  3103. display: '',
  3104. null: true,
  3105. name: 'postmaster_max_size',
  3106. tag: 'select',
  3107. options: {
  3108. 1 => ' 1',
  3109. 2 => ' 2',
  3110. 3 => ' 3',
  3111. 4 => ' 4',
  3112. 5 => ' 5',
  3113. 6 => ' 6',
  3114. 7 => ' 7',
  3115. 8 => ' 8',
  3116. 9 => ' 9',
  3117. 10 => ' 10',
  3118. 15 => ' 15',
  3119. 20 => ' 20',
  3120. 25 => ' 25',
  3121. 30 => ' 30',
  3122. 35 => ' 35',
  3123. 40 => ' 40',
  3124. 45 => ' 45',
  3125. 50 => ' 50',
  3126. 60 => ' 60',
  3127. 70 => ' 70',
  3128. 80 => ' 80',
  3129. 90 => ' 90',
  3130. 100 => '100',
  3131. 125 => '125',
  3132. 150 => '150',
  3133. },
  3134. },
  3135. ],
  3136. },
  3137. state: 10,
  3138. preferences: {
  3139. online_service_disable: true,
  3140. permission: ['admin.channel_email', 'admin.channel_google', 'admin.channel_microsoft365'],
  3141. },
  3142. frontend: false
  3143. )
  3144. Setting.create_if_not_exists(
  3145. title: __('Additional follow-up detection'),
  3146. name: 'postmaster_follow_up_search_in',
  3147. area: 'Email::Base',
  3148. description: __('By default, the follow-up check is done via the subject of an email. This setting lets you add more fields for which the follow-up check will be executed.'),
  3149. options: {
  3150. form: [
  3151. {
  3152. display: '',
  3153. null: true,
  3154. name: 'postmaster_follow_up_search_in',
  3155. tag: 'checkbox',
  3156. options: {
  3157. 'references' => __('References - Search for follow-up also in In-Reply-To or References headers.'),
  3158. 'body' => __('Body - Search for follow-up also in mail body.'),
  3159. 'attachment' => __('Attachment - Search for follow-up also in attachments.'),
  3160. },
  3161. translate: true,
  3162. },
  3163. ],
  3164. },
  3165. state: [],
  3166. preferences: {
  3167. permission: ['admin.channel_email', 'admin.channel_google', 'admin.channel_microsoft365'],
  3168. },
  3169. frontend: false
  3170. )
  3171. Setting.create_if_not_exists(
  3172. title: __('Sender based on Reply-To header'),
  3173. name: 'postmaster_sender_based_on_reply_to',
  3174. area: 'Email::Base',
  3175. description: __('Set/overwrite sender/from of email based on "Reply-To" header. Useful to set correct customer if email is received from a third-party system on behalf of a customer.'),
  3176. options: {
  3177. form: [
  3178. {
  3179. display: '',
  3180. null: true,
  3181. name: 'postmaster_sender_based_on_reply_to',
  3182. tag: 'select',
  3183. options: {
  3184. '' => '-',
  3185. 'as_sender_of_email' => __('Take Reply-To header as sender/from of email.'),
  3186. 'as_sender_of_email_use_from_realname' => __('Take Reply-To header as sender/from of email and use the real name of origin from.'),
  3187. },
  3188. translate: true,
  3189. },
  3190. ],
  3191. },
  3192. state: [],
  3193. preferences: {
  3194. permission: ['admin.channel_email', 'admin.channel_google', 'admin.channel_microsoft365'],
  3195. },
  3196. frontend: false
  3197. )
  3198. Setting.create_if_not_exists(
  3199. title: __('Customer selection based on sender and receiver list'),
  3200. name: 'postmaster_sender_is_agent_search_for_customer',
  3201. area: 'Email::Base',
  3202. description: __('If the sender is an agent, set the first user in the recipient list as the customer.'),
  3203. options: {
  3204. form: [
  3205. {
  3206. display: '',
  3207. null: true,
  3208. name: 'postmaster_sender_is_agent_search_for_customer',
  3209. tag: 'boolean',
  3210. options: {
  3211. true => 'yes',
  3212. false => 'no',
  3213. },
  3214. },
  3215. ],
  3216. },
  3217. state: true,
  3218. preferences: {
  3219. permission: ['admin.channel_email', 'admin.channel_google', 'admin.channel_microsoft365'],
  3220. },
  3221. frontend: false
  3222. )
  3223. Setting.create_if_not_exists(
  3224. title: __('Send postmaster mail if mail too large'),
  3225. name: 'postmaster_send_reject_if_mail_too_large',
  3226. area: 'Email::Base',
  3227. description: __('Send postmaster reject mail to sender of mail if mail is too large.'),
  3228. options: {
  3229. form: [
  3230. {
  3231. display: '',
  3232. null: true,
  3233. name: 'postmaster_send_reject_if_mail_too_large',
  3234. tag: 'boolean',
  3235. options: {
  3236. true => 'yes',
  3237. false => 'no',
  3238. },
  3239. },
  3240. ],
  3241. },
  3242. state: true,
  3243. preferences: {
  3244. online_service_disable: true,
  3245. permission: ['admin.channel_email', 'admin.channel_google', 'admin.channel_microsoft365'],
  3246. },
  3247. frontend: false
  3248. )
  3249. Setting.create_if_not_exists(
  3250. title: __('Notification Sender'),
  3251. name: 'notification_sender',
  3252. area: 'Email::Base',
  3253. description: __('Defines the sender of email notifications.'),
  3254. options: {
  3255. form: [
  3256. {
  3257. display: '',
  3258. null: false,
  3259. name: 'notification_sender',
  3260. tag: 'input',
  3261. },
  3262. ],
  3263. },
  3264. state: '#{config.product_name} <noreply@#{config.fqdn}>', # rubocop:disable Lint/InterpolationCheck
  3265. preferences: {
  3266. online_service_disable: true,
  3267. permission: ['admin.channel_email', 'admin.channel_google', 'admin.channel_microsoft365'],
  3268. },
  3269. frontend: false
  3270. )
  3271. Setting.create_if_not_exists(
  3272. title: __('Block Notifications'),
  3273. name: 'send_no_auto_response_reg_exp',
  3274. area: 'Email::Base',
  3275. description: __('If this regex matches, no notification will be sent by the sender.'),
  3276. options: {
  3277. form: [
  3278. {
  3279. display: '',
  3280. null: false,
  3281. name: 'send_no_auto_response_reg_exp',
  3282. tag: 'input',
  3283. },
  3284. ],
  3285. },
  3286. state: '(mailer-daemon|postmaster|abuse|root|noreply|noreply.+?|no-reply|no-reply.+?)@.+?',
  3287. preferences: {
  3288. online_service_disable: true,
  3289. permission: ['admin.channel_email', 'admin.channel_google', 'admin.channel_microsoft365'],
  3290. },
  3291. frontend: false
  3292. )
  3293. Setting.create_if_not_exists(
  3294. title: __('BCC address for all outgoing emails'),
  3295. name: 'system_bcc',
  3296. area: 'Email::Enhanced',
  3297. description: __('To archive all outgoing emails from Zammad to external, you can store a BCC email address here.'),
  3298. options: {},
  3299. state: '',
  3300. preferences: { online_service_disable: true },
  3301. frontend: false
  3302. )
  3303. Setting.create_if_not_exists(
  3304. title: __('API Token Access'),
  3305. name: 'api_token_access',
  3306. area: 'API::Base',
  3307. description: __('Enable REST API using tokens (not username/email address and password). Each user needs to create its own access tokens in user profile.'),
  3308. options: {
  3309. form: [
  3310. {
  3311. display: '',
  3312. null: true,
  3313. name: 'api_token_access',
  3314. tag: 'boolean',
  3315. options: {
  3316. true => 'yes',
  3317. false => 'no',
  3318. },
  3319. },
  3320. ],
  3321. },
  3322. state: true,
  3323. preferences: {
  3324. permission: ['admin.api'],
  3325. },
  3326. frontend: true
  3327. )
  3328. Setting.create_if_not_exists(
  3329. title: __('API Password Access'),
  3330. name: 'api_password_access',
  3331. area: 'API::Base',
  3332. description: __('Enable REST API access using the username/email address and password for the authentication user.'),
  3333. options: {
  3334. form: [
  3335. {
  3336. display: '',
  3337. null: true,
  3338. name: 'api_password_access',
  3339. tag: 'boolean',
  3340. options: {
  3341. true => 'yes',
  3342. false => 'no',
  3343. },
  3344. },
  3345. ],
  3346. },
  3347. state: true,
  3348. preferences: {
  3349. permission: ['admin.api'],
  3350. },
  3351. frontend: true
  3352. )
  3353. Setting.create_if_not_exists(
  3354. title: __('Monitoring Token'),
  3355. name: 'monitoring_token',
  3356. area: 'HealthCheck::Base',
  3357. description: __('Token for monitoring.'),
  3358. options: {
  3359. form: [
  3360. {
  3361. display: '',
  3362. null: false,
  3363. name: 'monitoring_token',
  3364. tag: 'input',
  3365. },
  3366. ],
  3367. },
  3368. state: ENV['MONITORING_TOKEN'] || SecureRandom.urlsafe_base64(40),
  3369. preferences: {
  3370. permission: ['admin.monitoring'],
  3371. },
  3372. frontend: false
  3373. )
  3374. Setting.create_if_not_exists(
  3375. title: __('Enable Chat'),
  3376. name: 'chat',
  3377. area: 'Chat::Base',
  3378. description: __('Enable/disable online chat.'),
  3379. options: {
  3380. form: [
  3381. {
  3382. display: '',
  3383. null: true,
  3384. name: 'chat',
  3385. tag: 'boolean',
  3386. options: {
  3387. true => 'yes',
  3388. false => 'no',
  3389. },
  3390. },
  3391. ],
  3392. },
  3393. preferences: {
  3394. trigger: ['menu:render', 'chat:rerender'],
  3395. permission: ['admin.channel_chat'],
  3396. },
  3397. state: false,
  3398. frontend: true
  3399. )
  3400. Setting.create_if_not_exists(
  3401. title: __('Agent idle timeout'),
  3402. name: 'chat_agent_idle_timeout',
  3403. area: 'Chat::Extended',
  3404. description: __('Idle timeout in seconds until agent is set offline automatically.'),
  3405. options: {
  3406. form: [
  3407. {
  3408. display: '',
  3409. null: false,
  3410. name: 'chat_agent_idle_timeout',
  3411. tag: 'input',
  3412. },
  3413. ],
  3414. },
  3415. state: '120',
  3416. preferences: {
  3417. permission: ['admin.channel_chat'],
  3418. },
  3419. frontend: true
  3420. )
  3421. Setting.create_if_not_exists(
  3422. title: __('Default Screen'),
  3423. name: 'default_controller',
  3424. area: 'Core',
  3425. description: __('Defines the default screen.'),
  3426. options: {},
  3427. state: '#dashboard',
  3428. frontend: true
  3429. )
  3430. Setting.create_if_not_exists(
  3431. title: __('Elasticsearch Endpoint URL'),
  3432. name: 'es_url',
  3433. area: 'SearchIndex::Elasticsearch',
  3434. description: __('Defines endpoint of Elasticsearch.'),
  3435. state: '',
  3436. preferences: { online_service_disable: true },
  3437. frontend: false
  3438. )
  3439. Setting.create_if_not_exists(
  3440. title: __('Elasticsearch Endpoint User'),
  3441. name: 'es_user',
  3442. area: 'SearchIndex::Elasticsearch',
  3443. description: __('Defines HTTP basic auth user of Elasticsearch.'),
  3444. state: '',
  3445. preferences: { online_service_disable: true },
  3446. frontend: false
  3447. )
  3448. Setting.create_if_not_exists(
  3449. title: __('Elasticsearch Endpoint Password'),
  3450. name: 'es_password',
  3451. area: 'SearchIndex::Elasticsearch',
  3452. description: __('Defines HTTP basic auth password of Elasticsearch.'),
  3453. state: '',
  3454. preferences: { online_service_disable: true },
  3455. frontend: false
  3456. )
  3457. Setting.create_if_not_exists(
  3458. title: __('Elasticsearch Endpoint Index'),
  3459. name: 'es_index',
  3460. area: 'SearchIndex::Elasticsearch',
  3461. description: __('Defines Elasticsearch index name.'),
  3462. state: 'zammad',
  3463. preferences: { online_service_disable: true },
  3464. frontend: false
  3465. )
  3466. Setting.create_if_not_exists(
  3467. title: __('Elasticsearch SSL verification'),
  3468. name: 'es_ssl_verify',
  3469. area: 'SearchIndex::Elasticsearch',
  3470. description: __('Defines Elasticsearch SSL verification.'),
  3471. state: true,
  3472. preferences: { online_service_disable: true },
  3473. frontend: false
  3474. )
  3475. Setting.create_if_not_exists(
  3476. title: __('Elasticsearch Attachment Extensions'),
  3477. name: 'es_attachment_ignore',
  3478. area: 'SearchIndex::Elasticsearch',
  3479. description: __('Defines attachment extensions which will be ignored by Elasticsearch.'),
  3480. state: [ '.png', '.jpg', '.jpeg', '.mpeg', '.mpg', '.mov', '.bin', '.exe', '.box', '.mbox' ],
  3481. preferences: { online_service_disable: true },
  3482. frontend: false
  3483. )
  3484. Setting.create_if_not_exists(
  3485. title: __('Elasticsearch Attachment Size'),
  3486. name: 'es_attachment_max_size_in_mb',
  3487. area: 'SearchIndex::Elasticsearch',
  3488. description: __('Define max. attachment size for Elasticsearch.'),
  3489. state: 10,
  3490. preferences: { online_service_disable: true },
  3491. frontend: false
  3492. )
  3493. Setting.create_if_not_exists(
  3494. title: __('Elasticsearch Total Payload Size'),
  3495. name: 'es_total_max_size_in_mb',
  3496. area: 'SearchIndex::Elasticsearch',
  3497. description: __('Define max. payload size for Elasticsearch.'),
  3498. state: 300,
  3499. preferences: { online_service_disable: true },
  3500. frontend: false
  3501. )
  3502. Setting.create_if_not_exists(
  3503. title: __('Elasticsearch Pipeline Name'),
  3504. name: 'es_pipeline',
  3505. area: 'SearchIndex::Elasticsearch',
  3506. description: __('Define pipeline name for Elasticsearch.'),
  3507. state: '',
  3508. preferences: { online_service_disable: true },
  3509. frontend: false
  3510. )
  3511. Setting.create_if_not_exists(
  3512. title: __('Elasticsearch Model Configuration'),
  3513. name: 'es_model_settings',
  3514. area: 'SearchIndex::Elasticsearch',
  3515. description: __('Define model configuration for Elasticsearch.'),
  3516. state: {},
  3517. preferences: { online_service_disable: true },
  3518. frontend: false
  3519. )
  3520. Setting.create_if_not_exists(
  3521. title: __('Import Mode'),
  3522. name: 'import_mode',
  3523. area: 'Import::Base',
  3524. description: __('Puts Zammad into import mode (disables some triggers).'),
  3525. options: {
  3526. form: [
  3527. {
  3528. display: '',
  3529. null: true,
  3530. name: 'import_mode',
  3531. tag: 'boolean',
  3532. options: {
  3533. true => 'yes',
  3534. false => 'no',
  3535. },
  3536. },
  3537. ],
  3538. },
  3539. state: false,
  3540. frontend: true
  3541. )
  3542. Setting.create_if_not_exists(
  3543. title: __('Import Backend'),
  3544. name: 'import_backend',
  3545. area: 'Import::Base::Internal',
  3546. description: __('Set backend which is being used for import.'),
  3547. options: {},
  3548. state: '',
  3549. frontend: true
  3550. )
  3551. Setting.create_if_not_exists(
  3552. title: __('Ignore Escalation/SLA Information'),
  3553. name: 'import_ignore_sla',
  3554. area: 'Import::Base',
  3555. description: __('Ignore escalation/SLA information for import.'),
  3556. options: {
  3557. form: [
  3558. {
  3559. display: '',
  3560. null: true,
  3561. name: 'import_ignore_sla',
  3562. tag: 'boolean',
  3563. options: {
  3564. true => 'yes',
  3565. false => 'no',
  3566. },
  3567. },
  3568. ],
  3569. },
  3570. state: false,
  3571. frontend: false
  3572. )
  3573. Setting.create_if_not_exists(
  3574. title: __('Import Endpoint'),
  3575. name: 'import_otrs_endpoint',
  3576. area: 'Import::OTRS',
  3577. description: __('Defines an OTRS endpoint to import users, tickets, states, and articles.'),
  3578. options: {
  3579. form: [
  3580. {
  3581. display: '',
  3582. null: false,
  3583. name: 'import_otrs_endpoint',
  3584. tag: 'input',
  3585. },
  3586. ],
  3587. },
  3588. state: 'http://otrs_host/otrs',
  3589. frontend: false
  3590. )
  3591. Setting.create_if_not_exists(
  3592. title: __('Import Key'),
  3593. name: 'import_otrs_endpoint_key',
  3594. area: 'Import::OTRS',
  3595. description: __('Defines OTRS endpoint authentication key.'),
  3596. options: {
  3597. form: [
  3598. {
  3599. display: '',
  3600. null: false,
  3601. name: 'import_otrs_endpoint_key',
  3602. tag: 'input',
  3603. },
  3604. ],
  3605. },
  3606. state: '',
  3607. frontend: false
  3608. )
  3609. Setting.create_if_not_exists(
  3610. title: __('Import User for HTTP basic authentication'),
  3611. name: 'import_otrs_user',
  3612. area: 'Import::OTRS',
  3613. description: __('Defines HTTP basic authentication user (only if OTRS is protected via HTTP basic auth).'),
  3614. options: {
  3615. form: [
  3616. {
  3617. display: '',
  3618. null: true,
  3619. name: 'import_otrs_user',
  3620. tag: 'input',
  3621. },
  3622. ],
  3623. },
  3624. state: '',
  3625. frontend: false
  3626. )
  3627. Setting.create_if_not_exists(
  3628. title: __('Import Password for HTTP basic authentication'),
  3629. name: 'import_otrs_password',
  3630. area: 'Import::OTRS',
  3631. description: __('Defines HTTP basic authentication password (only if OTRS is protected via HTTP basic auth).'),
  3632. options: {
  3633. form: [
  3634. {
  3635. display: '',
  3636. null: true,
  3637. name: 'import_otrs_password',
  3638. tag: 'input',
  3639. },
  3640. ],
  3641. },
  3642. state: '',
  3643. frontend: false
  3644. )
  3645. Setting.create_if_not_exists(
  3646. title: __('Import Endpoint'),
  3647. name: 'import_zendesk_endpoint',
  3648. area: 'Import::Zendesk',
  3649. description: __('Defines a Zendesk endpoint to import users, tickets, states, and articles.'),
  3650. options: {
  3651. form: [
  3652. {
  3653. display: '',
  3654. null: false,
  3655. name: 'import_zendesk_endpoint',
  3656. tag: 'input',
  3657. },
  3658. ],
  3659. },
  3660. state: 'https://yours.zendesk.com/api/v2',
  3661. frontend: false
  3662. )
  3663. Setting.create_if_not_exists(
  3664. title: __('Import API key for requesting the Zendesk API'),
  3665. name: 'import_zendesk_endpoint_key',
  3666. area: 'Import::Zendesk',
  3667. description: __('Defines Zendesk endpoint authentication API key.'),
  3668. options: {
  3669. form: [
  3670. {
  3671. display: '',
  3672. null: false,
  3673. name: 'import_zendesk_endpoint_key',
  3674. tag: 'input',
  3675. },
  3676. ],
  3677. },
  3678. state: '',
  3679. frontend: false
  3680. )
  3681. Setting.create_if_not_exists(
  3682. title: __('Import User for requesting the Zendesk API'),
  3683. name: 'import_zendesk_endpoint_username',
  3684. area: 'Import::Zendesk',
  3685. description: __('Defines Zendesk endpoint authentication user.'),
  3686. options: {
  3687. form: [
  3688. {
  3689. display: '',
  3690. null: true,
  3691. name: 'import_zendesk_endpoint_username',
  3692. tag: 'input',
  3693. },
  3694. ],
  3695. },
  3696. state: '',
  3697. frontend: false
  3698. )
  3699. Setting.create_if_not_exists(
  3700. title: __('Import Endpoint'),
  3701. name: 'import_freshdesk_endpoint',
  3702. area: 'Import::Freshdesk',
  3703. description: __('Defines a Freshdesk endpoint to import users, tickets, states, and articles.'),
  3704. options: {
  3705. form: [
  3706. {
  3707. display: '',
  3708. null: false,
  3709. name: 'import_freshdesk_endpoint',
  3710. tag: 'input',
  3711. },
  3712. ],
  3713. },
  3714. state: 'https://yours.freshdesk.com/api/v2',
  3715. frontend: false
  3716. )
  3717. Setting.create_if_not_exists(
  3718. title: __('Import API key for requesting the Freshdesk API'),
  3719. name: 'import_freshdesk_endpoint_key',
  3720. area: 'Import::Freshdesk',
  3721. description: __('Defines Freshdesk endpoint authentication API key.'),
  3722. options: {
  3723. form: [
  3724. {
  3725. display: '',
  3726. null: false,
  3727. name: 'import_freshdesk_endpoint_key',
  3728. tag: 'input',
  3729. },
  3730. ],
  3731. },
  3732. state: '',
  3733. frontend: false
  3734. )
  3735. Setting.create_if_not_exists(
  3736. title: __('Import Endpoint'),
  3737. name: 'import_kayako_endpoint',
  3738. area: 'Import::Kayako',
  3739. description: __('Defines a Kayako endpoint to import users, tickets, states, and articles.'),
  3740. options: {
  3741. form: [
  3742. {
  3743. display: '',
  3744. null: false,
  3745. name: 'import_kayako_endpoint',
  3746. tag: 'input',
  3747. },
  3748. ],
  3749. },
  3750. state: 'https://yours.kayako.com/api/v1',
  3751. frontend: false
  3752. )
  3753. Setting.create_if_not_exists(
  3754. title: __('Import User for requesting the Kayako API'),
  3755. name: 'import_kayako_endpoint_username',
  3756. area: 'Import::Kayako',
  3757. description: __('Defines Kayako endpoint authentication user.'),
  3758. options: {
  3759. form: [
  3760. {
  3761. display: '',
  3762. null: false,
  3763. name: 'import_kayako_endpoint_username',
  3764. tag: 'input',
  3765. },
  3766. ],
  3767. },
  3768. state: '',
  3769. frontend: false
  3770. )
  3771. Setting.create_if_not_exists(
  3772. title: __('Import Password for requesting the Kayako API'),
  3773. name: 'import_kayako_endpoint_password',
  3774. area: 'Import::Kayako',
  3775. description: __('Defines Kayako endpoint authentication password.'),
  3776. options: {
  3777. form: [
  3778. {
  3779. display: '',
  3780. null: false,
  3781. name: 'import_kayako_endpoint_password',
  3782. tag: 'input',
  3783. },
  3784. ],
  3785. },
  3786. state: '',
  3787. frontend: false
  3788. )
  3789. Setting.create_if_not_exists(
  3790. title: __('Import Backends'),
  3791. name: 'import_backends',
  3792. area: 'Import',
  3793. description: __('A list of active import backends that gets scheduled automatically.'),
  3794. options: {},
  3795. state: ['Import::Ldap', 'Import::Exchange'],
  3796. preferences: {
  3797. permission: ['admin'],
  3798. },
  3799. frontend: false
  3800. )
  3801. Setting.create_if_not_exists(
  3802. title: __('Sequencer log level'),
  3803. name: 'sequencer_log_level',
  3804. area: 'Core',
  3805. description: __('Defines the log levels for various logging actions of the Sequencer.'),
  3806. options: {},
  3807. state: {
  3808. sequence: {
  3809. start_finish: :debug,
  3810. unit: :debug,
  3811. result: :debug,
  3812. },
  3813. state: {
  3814. optional: :debug,
  3815. set: :debug,
  3816. get: :debug,
  3817. attribute_initialization: {
  3818. start_finish: :debug,
  3819. attributes: :debug,
  3820. },
  3821. parameter_initialization: {
  3822. parameters: :debug,
  3823. start_finish: :debug,
  3824. unused: :debug,
  3825. },
  3826. expectations_initialization: :debug,
  3827. cleanup: {
  3828. start_finish: :debug,
  3829. remove: :debug,
  3830. }
  3831. }
  3832. },
  3833. frontend: false,
  3834. )
  3835. Setting.create_if_not_exists(
  3836. title: __('Time Accounting'),
  3837. name: 'time_accounting',
  3838. area: 'Web::Base',
  3839. description: __('Enable time accounting.'),
  3840. options: {
  3841. form: [
  3842. {
  3843. display: '',
  3844. null: true,
  3845. name: 'time_accounting',
  3846. tag: 'boolean',
  3847. options: {
  3848. true => 'yes',
  3849. false => 'no',
  3850. },
  3851. },
  3852. ],
  3853. },
  3854. preferences: {
  3855. authentication: true,
  3856. permission: ['admin.time_accounting'],
  3857. },
  3858. state: false,
  3859. frontend: true
  3860. )
  3861. Setting.create_if_not_exists(
  3862. title: __('Time Accounting Selector'),
  3863. name: 'time_accounting_selector',
  3864. area: 'Web::Base',
  3865. description: __('Show time accounting dialog when updating matching tickets.'),
  3866. options: {
  3867. form: [
  3868. {},
  3869. ],
  3870. },
  3871. preferences: {
  3872. authentication: true,
  3873. permission: ['admin.time_accounting'],
  3874. },
  3875. state: {},
  3876. frontend: true
  3877. )
  3878. Setting.create_if_not_exists(
  3879. title: __('Time Accounting Unit'),
  3880. name: 'time_accounting_unit',
  3881. area: 'Web::Base',
  3882. description: __('Defines the unit to be shown next to the time accounting input field.'),
  3883. options: {
  3884. form: [
  3885. {},
  3886. ],
  3887. },
  3888. preferences: {
  3889. authentication: true,
  3890. permission: ['admin.time_accounting'],
  3891. },
  3892. state: '',
  3893. frontend: true
  3894. )
  3895. Setting.create_if_not_exists(
  3896. title: __('Time Accounting Custom Unit'),
  3897. name: 'time_accounting_unit_custom',
  3898. area: 'Web::Base',
  3899. description: __('Defines the custom unit to be shown next to the time accounting input field.'),
  3900. options: {
  3901. form: [
  3902. {},
  3903. ],
  3904. },
  3905. preferences: {
  3906. authentication: true,
  3907. permission: ['admin.time_accounting'],
  3908. },
  3909. state: '',
  3910. frontend: true
  3911. )
  3912. Setting.create_if_not_exists(
  3913. title: __('Time Accounting Types'),
  3914. name: 'time_accounting_types',
  3915. area: 'Web::Base',
  3916. description: __('Defines if the time accounting types are enabled.'),
  3917. options: {
  3918. form: [
  3919. {},
  3920. ],
  3921. },
  3922. preferences: {
  3923. authentication: true,
  3924. permission: ['admin.time_accounting'],
  3925. },
  3926. state: false,
  3927. frontend: true
  3928. )
  3929. Setting.create_if_not_exists(
  3930. title: __('Time Accounting Default Type'),
  3931. name: 'time_accounting_type_default',
  3932. area: 'Web::Base',
  3933. description: __('Defines the default time accounting type.'),
  3934. options: {
  3935. form: [
  3936. {},
  3937. ],
  3938. },
  3939. preferences: {
  3940. authentication: true,
  3941. permission: ['admin.time_accounting'],
  3942. },
  3943. state: '',
  3944. frontend: true
  3945. )
  3946. Setting.create_if_not_exists(
  3947. title: __('New Tags'),
  3948. name: 'tag_new',
  3949. area: 'Web::Base',
  3950. description: __('Allow users to create new tags.'),
  3951. options: {
  3952. form: [
  3953. {
  3954. display: '',
  3955. null: true,
  3956. name: 'tag_new',
  3957. tag: 'boolean',
  3958. options: {
  3959. true => 'yes',
  3960. false => 'no',
  3961. },
  3962. },
  3963. ],
  3964. },
  3965. preferences: {
  3966. authentication: true,
  3967. permission: ['admin.tag'],
  3968. },
  3969. state: true,
  3970. frontend: true
  3971. )
  3972. Setting.create_if_not_exists(
  3973. title: __('Default calendar tickets subscriptions'),
  3974. name: 'defaults_calendar_subscriptions_tickets',
  3975. area: 'Defaults::CalendarSubscriptions',
  3976. description: __('Defines the default calendar tickets subscription settings.'),
  3977. options: {},
  3978. state: {
  3979. escalation: {
  3980. own: true,
  3981. not_assigned: false,
  3982. },
  3983. new_open: {
  3984. own: true,
  3985. not_assigned: false,
  3986. },
  3987. pending: {
  3988. own: true,
  3989. not_assigned: false,
  3990. }
  3991. },
  3992. preferences: {
  3993. authentication: true,
  3994. },
  3995. frontend: true
  3996. )
  3997. Setting.create_if_not_exists(
  3998. title: __('Defines postmaster filter.'),
  3999. name: '0005_postmaster_filter_trusted',
  4000. area: 'Postmaster::PreFilter',
  4001. description: __('Defines postmaster filter to remove X-Zammad headers from untrustworthy sources.'),
  4002. options: {},
  4003. state: 'Channel::Filter::Trusted',
  4004. frontend: false
  4005. )
  4006. Setting.create_if_not_exists(
  4007. title: __('Defines postmaster filter.'),
  4008. name: '0006_postmaster_filter_auto_response_check',
  4009. area: 'Postmaster::PreFilter',
  4010. description: __('Defines postmaster filter to identify auto responses to prevent auto replies from Zammad.'),
  4011. options: {},
  4012. state: 'Channel::Filter::AutoResponseCheck',
  4013. frontend: false
  4014. )
  4015. Setting.create_if_not_exists(
  4016. title: __('Defines postmaster filter.'),
  4017. name: '0007_postmaster_filter_follow_up_check',
  4018. area: 'Postmaster::PreFilter',
  4019. description: __('Defines postmaster filter to identify follow-ups (based on admin settings).'),
  4020. options: {},
  4021. state: 'Channel::Filter::FollowUpCheck',
  4022. frontend: false
  4023. )
  4024. Setting.create_if_not_exists(
  4025. title: __('Defines postmaster filter.'),
  4026. name: '0008_postmaster_filter_follow_up_merged',
  4027. area: 'Postmaster::PreFilter',
  4028. description: __('Defines postmaster filter to identify follow-up ticket for merged tickets.'),
  4029. options: {},
  4030. state: 'Channel::Filter::FollowUpMerged',
  4031. frontend: false
  4032. )
  4033. Setting.create_if_not_exists(
  4034. title: __('Defines postmaster filter.'),
  4035. name: '0009_postmaster_filter_follow_up_assignment',
  4036. area: 'Postmaster::PreFilter',
  4037. description: __('Defines postmaster filter to set the owner (based on group follow up assignment).'),
  4038. options: {},
  4039. state: 'Channel::Filter::FollowUpAssignment',
  4040. frontend: false
  4041. )
  4042. Setting.create_if_not_exists(
  4043. title: __('Defines postmaster filter.'),
  4044. name: '0011_postmaster_sender_based_on_reply_to',
  4045. area: 'Postmaster::PreFilter',
  4046. description: __('Defines postmaster filter to set the sender/from of emails based on reply-to header.'),
  4047. options: {},
  4048. state: 'Channel::Filter::ReplyToBasedSender',
  4049. frontend: false
  4050. )
  4051. Setting.create_if_not_exists(
  4052. title: __('Define postmaster filter.'),
  4053. name: '0018_postmaster_import_archive',
  4054. area: 'Postmaster::PreFilter',
  4055. description: __('Define postmaster filter to import archive mailboxes.'),
  4056. options: {},
  4057. state: 'Channel::Filter::ImportArchive',
  4058. frontend: false
  4059. )
  4060. Setting.create_if_not_exists(
  4061. title: __('Defines postmaster filter.'),
  4062. name: '0012_postmaster_filter_sender_is_system_address',
  4063. area: 'Postmaster::PreFilter',
  4064. description: __('Defines postmaster filter to check if email has been created by Zammad itself and will set the article sender.'),
  4065. options: {},
  4066. state: 'Channel::Filter::SenderIsSystemAddress',
  4067. frontend: false
  4068. )
  4069. Setting.create_if_not_exists(
  4070. title: __('Defines postmaster filter.'),
  4071. name: '0014_postmaster_filter_own_notification_loop_detection',
  4072. area: 'Postmaster::PreFilter',
  4073. description: __('Defines postmaster filter to check if the email is a self-created notification email, then ignore it to prevent email loops.'),
  4074. options: {},
  4075. state: 'Channel::Filter::OwnNotificationLoopDetection',
  4076. frontend: false
  4077. )
  4078. Setting.create_if_not_exists(
  4079. title: __('Defines postmaster filter.'),
  4080. name: '0015_postmaster_filter_identify_sender',
  4081. area: 'Postmaster::PreFilter',
  4082. description: __('Defines postmaster filter to identify sender user.'),
  4083. options: {},
  4084. state: 'Channel::Filter::IdentifySender',
  4085. frontend: false
  4086. )
  4087. Setting.create_if_not_exists(
  4088. title: __('Defines postmaster filter.'),
  4089. name: '0016_postmaster_filter_secure_mailing',
  4090. area: 'Postmaster::PreFilter',
  4091. description: __('Defines postmaster filter to handle secure mailing.'),
  4092. options: {},
  4093. state: 'Channel::Filter::SecureMailing',
  4094. frontend: false
  4095. )
  4096. Setting.create_if_not_exists(
  4097. title: __('Defines postmaster filter.'),
  4098. name: '0030_postmaster_filter_out_of_office_check',
  4099. area: 'Postmaster::PreFilter',
  4100. description: __('Defines postmaster filter to identify out-of-office emails for follow-up detection and keeping current ticket state.'),
  4101. options: {},
  4102. state: 'Channel::Filter::OutOfOfficeCheck',
  4103. frontend: false
  4104. )
  4105. Setting.create_if_not_exists(
  4106. title: __('Defines postmaster filter.'),
  4107. name: '0200_postmaster_filter_follow_up_possible_check',
  4108. area: 'Postmaster::PreFilter',
  4109. description: __('Define postmaster filter to check if follow-ups get created (based on admin settings).'),
  4110. options: {},
  4111. state: 'Channel::Filter::FollowUpPossibleCheck',
  4112. frontend: false
  4113. )
  4114. Setting.create_if_not_exists(
  4115. title: __('Defines postmaster filter.'),
  4116. name: '0900_postmaster_filter_bounce_follow_up_check',
  4117. area: 'Postmaster::PreFilter',
  4118. description: __('Defines postmaster filter to identify postmaster bounces; and handles them as follow-up of the original tickets'),
  4119. options: {},
  4120. state: 'Channel::Filter::BounceFollowUpCheck',
  4121. frontend: false
  4122. )
  4123. Setting.create_if_not_exists(
  4124. title: __('Defines postmaster filter.'),
  4125. name: '0950_postmaster_filter_bounce_delivery_permanent_failed',
  4126. area: 'Postmaster::PreFilter',
  4127. description: __('Defines postmaster filter to identify postmaster bounces; and disables sending notification if delivery fails permanently.'),
  4128. options: {},
  4129. state: 'Channel::Filter::BounceDeliveryPermanentFailed',
  4130. frontend: false
  4131. )
  4132. Setting.create_if_not_exists(
  4133. title: __('Defines postmaster filter.'),
  4134. name: '0955_postmaster_filter_bounce_delivery_temporary_failed',
  4135. area: 'Postmaster::PreFilter',
  4136. description: __('Defines postmaster filter to identify postmaster bounces; and reopens tickets if delivery fails permanently.'),
  4137. options: {},
  4138. state: 'Channel::Filter::BounceDeliveryTemporaryFailed',
  4139. frontend: false
  4140. )
  4141. Setting.create_if_not_exists(
  4142. title: __('Defines postmaster filter.'),
  4143. name: '1000_postmaster_filter_database_check',
  4144. area: 'Postmaster::PreFilter',
  4145. description: __('Defines postmaster filter for filters managed via admin interface.'),
  4146. options: {},
  4147. state: 'Channel::Filter::Database',
  4148. frontend: false
  4149. )
  4150. Setting.create_if_not_exists(
  4151. title: __('Defines postmaster filter.'),
  4152. name: '5000_postmaster_filter_icinga',
  4153. area: 'Postmaster::PreFilter',
  4154. description: __('Defines postmaster filter to manage Icinga (http://www.icinga.org) emails.'),
  4155. options: {},
  4156. state: 'Channel::Filter::Icinga',
  4157. frontend: false
  4158. )
  4159. Setting.create_if_not_exists(
  4160. title: __('Defines postmaster filter.'),
  4161. name: '5100_postmaster_filter_nagios',
  4162. area: 'Postmaster::PreFilter',
  4163. description: __('Defines postmaster filter to manage Nagios (http://www.nagios.org) emails.'),
  4164. options: {},
  4165. state: 'Channel::Filter::Nagios',
  4166. frontend: false
  4167. )
  4168. Setting.create_if_not_exists(
  4169. title: __('Defines postmaster filter.'),
  4170. name: '5300_postmaster_filter_monit',
  4171. area: 'Postmaster::PreFilter',
  4172. description: __('Defines postmaster filter to manage Monit (https://mmonit.com/monit/) emails.'),
  4173. options: {},
  4174. state: 'Channel::Filter::Monit',
  4175. frontend: false
  4176. )
  4177. Setting.create_if_not_exists(
  4178. title: __('Defines postmaster filter.'),
  4179. name: '5400_postmaster_filter_service_now_check',
  4180. area: 'Postmaster::PreFilter',
  4181. description: __('Defines postmaster filter to identify ServiceNow mails for correct follow-ups.'),
  4182. options: {},
  4183. state: 'Channel::Filter::ServiceNowCheck',
  4184. frontend: false
  4185. )
  4186. Setting.create_if_not_exists(
  4187. title: __('Defines postmaster filter.'),
  4188. name: '5401_postmaster_filter_service_now_check',
  4189. area: 'Postmaster::PostFilter',
  4190. description: __('Defines postmaster filter to identify ServiceNow mails for correct follow-ups.'),
  4191. options: {},
  4192. state: 'Channel::Filter::ServiceNowCheck',
  4193. frontend: false
  4194. )
  4195. Setting.create_if_not_exists(
  4196. title: __('Defines postmaster filter.'),
  4197. name: '5400_postmaster_filter_jira_check',
  4198. area: 'Postmaster::PreFilter',
  4199. description: __('Defines postmaster filter to identify Jira mails for correct follow-ups.'),
  4200. options: {},
  4201. state: 'Channel::Filter::JiraCheck',
  4202. frontend: false
  4203. )
  4204. Setting.create_if_not_exists(
  4205. title: __('Defines postmaster filter.'),
  4206. name: '5401_postmaster_filter_jira_check',
  4207. area: 'Postmaster::PostFilter',
  4208. description: __('Defines postmaster filter to identify Jira mails for correct follow-ups.'),
  4209. options: {},
  4210. state: 'Channel::Filter::JiraCheck',
  4211. frontend: false
  4212. )
  4213. Setting.create_if_not_exists(
  4214. title: __('Define postmaster filter.'),
  4215. name: '5500_postmaster_internal_article_check',
  4216. area: 'Postmaster::PreFilter',
  4217. description: __('Defines postmaster filter which sets the articles visibility to internal if it is a rely to an internal article or the last outgoing email is internal.'),
  4218. options: {},
  4219. state: 'Channel::Filter::InternalArticleCheck',
  4220. frontend: false
  4221. )
  4222. Setting.create_if_not_exists(
  4223. title: __('Icinga integration'),
  4224. name: 'icinga_integration',
  4225. area: 'Integration::Switch',
  4226. description: __('Defines if Icinga (http://www.icinga.org) is enabled or not.'),
  4227. options: {
  4228. form: [
  4229. {
  4230. display: '',
  4231. null: true,
  4232. name: 'icinga_integration',
  4233. tag: 'boolean',
  4234. options: {
  4235. true => 'yes',
  4236. false => 'no',
  4237. },
  4238. },
  4239. ],
  4240. },
  4241. state: false,
  4242. preferences: {
  4243. prio: 1,
  4244. permission: ['admin.integration'],
  4245. },
  4246. frontend: false
  4247. )
  4248. Setting.create_if_not_exists(
  4249. title: __('Sender'),
  4250. name: 'icinga_sender',
  4251. area: 'Integration::Icinga',
  4252. description: __('Defines the sender email address of Icinga emails.'),
  4253. options: {
  4254. form: [
  4255. {
  4256. display: '',
  4257. null: false,
  4258. name: 'icinga_sender',
  4259. tag: 'input',
  4260. placeholder: 'icinga@monitoring.example.com',
  4261. },
  4262. ],
  4263. },
  4264. state: 'icinga@monitoring.example.com',
  4265. preferences: {
  4266. prio: 2,
  4267. permission: ['admin.integration'],
  4268. },
  4269. frontend: false,
  4270. )
  4271. Setting.create_if_not_exists(
  4272. title: __('Auto close'),
  4273. name: 'icinga_auto_close',
  4274. area: 'Integration::Icinga',
  4275. description: __('Defines if tickets should be closed if service is recovered.'),
  4276. options: {
  4277. form: [
  4278. {
  4279. display: '',
  4280. null: true,
  4281. name: 'icinga_auto_close',
  4282. tag: 'boolean',
  4283. options: {
  4284. true => 'yes',
  4285. false => 'no',
  4286. },
  4287. },
  4288. ],
  4289. },
  4290. state: true,
  4291. preferences: {
  4292. prio: 3,
  4293. permission: ['admin.integration'],
  4294. },
  4295. frontend: false
  4296. )
  4297. Setting.create_if_not_exists(
  4298. title: __('Auto-close state'),
  4299. name: 'icinga_auto_close_state_id',
  4300. area: 'Integration::Icinga',
  4301. description: __('Defines the state of auto-closed tickets.'),
  4302. options: {
  4303. form: [
  4304. {
  4305. display: '',
  4306. null: false,
  4307. name: 'icinga_auto_close_state_id',
  4308. tag: 'select',
  4309. relation: 'TicketState',
  4310. },
  4311. ],
  4312. },
  4313. state: 4,
  4314. preferences: {
  4315. prio: 4,
  4316. permission: ['admin.integration'],
  4317. },
  4318. frontend: false
  4319. )
  4320. Setting.create_if_not_exists(
  4321. title: __('Nagios integration'),
  4322. name: 'nagios_integration',
  4323. area: 'Integration::Switch',
  4324. description: __('Defines if Nagios (http://www.nagios.org) is enabled or not.'),
  4325. options: {
  4326. form: [
  4327. {
  4328. display: '',
  4329. null: true,
  4330. name: 'nagios_integration',
  4331. tag: 'boolean',
  4332. options: {
  4333. true => 'yes',
  4334. false => 'no',
  4335. },
  4336. },
  4337. ],
  4338. },
  4339. state: false,
  4340. preferences: {
  4341. prio: 1,
  4342. permission: ['admin.integration'],
  4343. },
  4344. frontend: false
  4345. )
  4346. Setting.create_if_not_exists(
  4347. title: __('Sender'),
  4348. name: 'nagios_sender',
  4349. area: 'Integration::Nagios',
  4350. description: __('Defines the sender email address of Nagios emails.'),
  4351. options: {
  4352. form: [
  4353. {
  4354. display: '',
  4355. null: false,
  4356. name: 'nagios_sender',
  4357. tag: 'input',
  4358. placeholder: 'nagios@monitoring.example.com',
  4359. },
  4360. ],
  4361. },
  4362. state: 'nagios@monitoring.example.com',
  4363. preferences: {
  4364. prio: 2,
  4365. permission: ['admin.integration'],
  4366. },
  4367. frontend: false,
  4368. )
  4369. Setting.create_if_not_exists(
  4370. title: __('Auto close'),
  4371. name: 'nagios_auto_close',
  4372. area: 'Integration::Nagios',
  4373. description: __('Defines if tickets should be closed if service is recovered.'),
  4374. options: {
  4375. form: [
  4376. {
  4377. display: '',
  4378. null: true,
  4379. name: 'nagios_auto_close',
  4380. tag: 'boolean',
  4381. options: {
  4382. true => 'yes',
  4383. false => 'no',
  4384. },
  4385. },
  4386. ],
  4387. },
  4388. state: true,
  4389. preferences: {
  4390. prio: 3,
  4391. permission: ['admin.integration'],
  4392. },
  4393. frontend: false
  4394. )
  4395. Setting.create_if_not_exists(
  4396. title: __('Auto-close state'),
  4397. name: 'nagios_auto_close_state_id',
  4398. area: 'Integration::Nagios',
  4399. description: __('Defines the state of auto-closed tickets.'),
  4400. options: {
  4401. form: [
  4402. {
  4403. display: '',
  4404. null: false,
  4405. name: 'nagios_auto_close_state_id',
  4406. tag: 'select',
  4407. relation: 'TicketState',
  4408. },
  4409. ],
  4410. },
  4411. state: 4,
  4412. preferences: {
  4413. prio: 4,
  4414. permission: ['admin.integration'],
  4415. },
  4416. frontend: false
  4417. )
  4418. Setting.create_if_not_exists(
  4419. title: __('Checkmk integration'),
  4420. name: 'check_mk_integration',
  4421. area: 'Integration::Switch',
  4422. description: __('Defines if Checkmk (https://checkmk.com/) is enabled or not.'),
  4423. options: {
  4424. form: [
  4425. {
  4426. display: '',
  4427. null: true,
  4428. name: 'check_mk_integration',
  4429. tag: 'boolean',
  4430. options: {
  4431. true => 'yes',
  4432. false => 'no',
  4433. },
  4434. },
  4435. ],
  4436. },
  4437. state: false,
  4438. preferences: {
  4439. prio: 1,
  4440. permission: ['admin.integration'],
  4441. },
  4442. frontend: false
  4443. )
  4444. Setting.create_if_not_exists(
  4445. title: __('Group'),
  4446. name: 'check_mk_group_id',
  4447. area: 'Integration::CheckMK',
  4448. description: __('Defines the group of created tickets.'),
  4449. options: {
  4450. form: [
  4451. {
  4452. display: '',
  4453. null: false,
  4454. name: 'check_mk_group_id',
  4455. tag: 'select',
  4456. relation: 'Group',
  4457. },
  4458. ],
  4459. },
  4460. state: 1,
  4461. preferences: {
  4462. prio: 2,
  4463. permission: ['admin.integration'],
  4464. },
  4465. frontend: false
  4466. )
  4467. Setting.create_if_not_exists(
  4468. title: __('Auto close'),
  4469. name: 'check_mk_auto_close',
  4470. area: 'Integration::CheckMK',
  4471. description: __('Defines if tickets should be closed if service is recovered.'),
  4472. options: {
  4473. form: [
  4474. {
  4475. display: '',
  4476. null: true,
  4477. name: 'check_mk_auto_close',
  4478. tag: 'boolean',
  4479. options: {
  4480. true => 'yes',
  4481. false => 'no',
  4482. },
  4483. },
  4484. ],
  4485. },
  4486. state: true,
  4487. preferences: {
  4488. prio: 3,
  4489. permission: ['admin.integration'],
  4490. },
  4491. frontend: false
  4492. )
  4493. Setting.create_if_not_exists(
  4494. title: __('Auto-close state'),
  4495. name: 'check_mk_auto_close_state_id',
  4496. area: 'Integration::CheckMK',
  4497. description: __('Defines the state of auto-closed tickets.'),
  4498. options: {
  4499. form: [
  4500. {
  4501. display: '',
  4502. null: false,
  4503. name: 'check_mk_auto_close_state_id',
  4504. tag: 'select',
  4505. relation: 'TicketState',
  4506. },
  4507. ],
  4508. },
  4509. state: 4,
  4510. preferences: {
  4511. prio: 4,
  4512. permission: ['admin.integration'],
  4513. },
  4514. frontend: false
  4515. )
  4516. Setting.create_if_not_exists(
  4517. title: __('Checkmk token'),
  4518. name: 'check_mk_token',
  4519. area: 'Core',
  4520. description: __('Defines the Checkmk token for allowing updates.'),
  4521. options: {},
  4522. state: ENV['CHECK_MK_TOKEN'] || SecureRandom.hex(16),
  4523. preferences: {
  4524. permission: ['admin.integration'],
  4525. },
  4526. frontend: false
  4527. )
  4528. Setting.create_if_not_exists(
  4529. title: __('Monit integration'),
  4530. name: 'monit_integration',
  4531. area: 'Integration::Switch',
  4532. description: __('Defines if Monit (https://mmonit.com/monit/) is enabled or not.'),
  4533. options: {
  4534. form: [
  4535. {
  4536. display: '',
  4537. null: true,
  4538. name: 'monit_integration',
  4539. tag: 'boolean',
  4540. options: {
  4541. true => 'yes',
  4542. false => 'no',
  4543. },
  4544. },
  4545. ],
  4546. },
  4547. state: false,
  4548. preferences: {
  4549. prio: 1,
  4550. permission: ['admin.integration'],
  4551. },
  4552. frontend: false
  4553. )
  4554. Setting.create_if_not_exists(
  4555. title: __('Sender'),
  4556. name: 'monit_sender',
  4557. area: 'Integration::Monit',
  4558. description: __('Defines the sender email address of the service emails.'),
  4559. options: {
  4560. form: [
  4561. {
  4562. display: '',
  4563. null: false,
  4564. name: 'monit_sender',
  4565. tag: 'input',
  4566. placeholder: 'monit@monitoring.example.com',
  4567. },
  4568. ],
  4569. },
  4570. state: 'monit@monitoring.example.com',
  4571. preferences: {
  4572. prio: 2,
  4573. permission: ['admin.integration'],
  4574. },
  4575. frontend: false,
  4576. )
  4577. Setting.create_if_not_exists(
  4578. title: __('Auto close'),
  4579. name: 'monit_auto_close',
  4580. area: 'Integration::Monit',
  4581. description: __('Defines if tickets should be closed if service is recovered.'),
  4582. options: {
  4583. form: [
  4584. {
  4585. display: '',
  4586. null: true,
  4587. name: 'monit_auto_close',
  4588. tag: 'boolean',
  4589. options: {
  4590. true => 'yes',
  4591. false => 'no',
  4592. },
  4593. translate: true,
  4594. },
  4595. ],
  4596. },
  4597. state: true,
  4598. preferences: {
  4599. prio: 3,
  4600. permission: ['admin.integration'],
  4601. },
  4602. frontend: false
  4603. )
  4604. Setting.create_if_not_exists(
  4605. title: __('Auto-close state'),
  4606. name: 'monit_auto_close_state_id',
  4607. area: 'Integration::Monit',
  4608. description: __('Defines the state of auto-closed tickets.'),
  4609. options: {
  4610. form: [
  4611. {
  4612. display: '',
  4613. null: false,
  4614. name: 'monit_auto_close_state_id',
  4615. tag: 'select',
  4616. relation: 'TicketState',
  4617. translate: true,
  4618. },
  4619. ],
  4620. },
  4621. state: 4,
  4622. preferences: {
  4623. prio: 4,
  4624. permission: ['admin.integration'],
  4625. },
  4626. frontend: false
  4627. )
  4628. Setting.create_if_not_exists(
  4629. title: __('LDAP integration'),
  4630. name: 'ldap_integration',
  4631. area: 'Integration::Switch',
  4632. description: __('Defines if LDAP is enabled or not.'),
  4633. options: {
  4634. form: [
  4635. {
  4636. display: '',
  4637. null: true,
  4638. name: 'ldap_integration',
  4639. tag: 'boolean',
  4640. options: {
  4641. true => 'yes',
  4642. false => 'no',
  4643. },
  4644. },
  4645. ],
  4646. },
  4647. state: false,
  4648. preferences: {
  4649. prio: 1,
  4650. authentication: true,
  4651. permission: ['admin.integration'],
  4652. },
  4653. frontend: true
  4654. )
  4655. Setting.create_if_not_exists(
  4656. title: __('Exchange config'),
  4657. name: 'exchange_config',
  4658. area: 'Integration::Exchange',
  4659. description: __('Defines the Exchange config.'),
  4660. options: {},
  4661. state: {},
  4662. preferences: {
  4663. prio: 2,
  4664. permission: ['admin.integration'],
  4665. },
  4666. frontend: false,
  4667. )
  4668. Setting.create_if_not_exists(
  4669. title: __('Exchange OAuth'),
  4670. name: 'exchange_oauth',
  4671. area: 'Integration::Exchange',
  4672. description: __('Defines the Exchange OAuth config.'),
  4673. options: {},
  4674. state: {},
  4675. preferences: {
  4676. prio: 2,
  4677. permission: ['admin.integration'],
  4678. },
  4679. frontend: false,
  4680. )
  4681. Setting.create_if_not_exists(
  4682. title: __('Exchange integration'),
  4683. name: 'exchange_integration',
  4684. area: 'Integration::Switch',
  4685. description: __('Defines if Exchange is enabled or not.'),
  4686. options: {
  4687. form: [
  4688. {
  4689. display: '',
  4690. null: true,
  4691. name: 'exchange_integration',
  4692. tag: 'boolean',
  4693. options: {
  4694. true => 'yes',
  4695. false => 'no',
  4696. },
  4697. },
  4698. ],
  4699. },
  4700. state: false,
  4701. preferences: {
  4702. prio: 1,
  4703. authentication: true,
  4704. permission: ['admin.integration'],
  4705. },
  4706. frontend: true
  4707. )
  4708. Setting.create_if_not_exists(
  4709. title: __('i-doit integration'),
  4710. name: 'idoit_integration',
  4711. area: 'Integration::Switch',
  4712. description: __('Defines if the i-doit (https://www.i-doit.org/) integration is enabled or not.'),
  4713. options: {
  4714. form: [
  4715. {
  4716. display: '',
  4717. null: true,
  4718. name: 'idoit_integration',
  4719. tag: 'boolean',
  4720. options: {
  4721. true => 'yes',
  4722. false => 'no',
  4723. },
  4724. },
  4725. ],
  4726. },
  4727. state: false,
  4728. preferences: {
  4729. prio: 1,
  4730. authentication: true,
  4731. permission: ['admin.integration'],
  4732. },
  4733. frontend: true
  4734. )
  4735. Setting.create_if_not_exists(
  4736. title: __('i-doit config'),
  4737. name: 'idoit_config',
  4738. area: 'Integration::Idoit',
  4739. description: __('Defines the i-doit config.'),
  4740. options: {},
  4741. state: {},
  4742. preferences: {
  4743. prio: 2,
  4744. permission: ['admin.integration'],
  4745. },
  4746. frontend: false,
  4747. )
  4748. Setting.create_if_not_exists(
  4749. title: __('GitLab integration'),
  4750. name: 'gitlab_integration',
  4751. area: 'Integration::Switch',
  4752. description: __('Defines if the GitLab (http://www.gitlab.com) integration is enabled or not.'),
  4753. options: {
  4754. form: [
  4755. {
  4756. display: '',
  4757. null: true,
  4758. name: 'gitlab_integration',
  4759. tag: 'boolean',
  4760. options: {
  4761. true => 'yes',
  4762. false => 'no',
  4763. },
  4764. },
  4765. ],
  4766. },
  4767. state: false,
  4768. preferences: {
  4769. prio: 1,
  4770. authentication: true,
  4771. permission: ['admin.integration'],
  4772. },
  4773. frontend: true
  4774. )
  4775. Setting.create_if_not_exists(
  4776. title: __('GitLab config'),
  4777. name: 'gitlab_config',
  4778. area: 'Integration::GitLab',
  4779. description: __('Stores the GitLab configuration.'),
  4780. options: {},
  4781. state: {
  4782. endpoint: 'https://gitlab.com/api/graphql',
  4783. },
  4784. preferences: {
  4785. prio: 2,
  4786. permission: ['admin.integration'],
  4787. },
  4788. frontend: false,
  4789. )
  4790. Setting.create_if_not_exists(
  4791. title: __('GitHub integration'),
  4792. name: 'github_integration',
  4793. area: 'Integration::Switch',
  4794. description: __('Defines if the GitHub (http://www.github.com) integration is enabled or not.'),
  4795. options: {
  4796. form: [
  4797. {
  4798. display: '',
  4799. null: true,
  4800. name: 'github_integration',
  4801. tag: 'boolean',
  4802. options: {
  4803. true => 'yes',
  4804. false => 'no',
  4805. },
  4806. },
  4807. ],
  4808. },
  4809. state: false,
  4810. preferences: {
  4811. prio: 1,
  4812. authentication: true,
  4813. permission: ['admin.integration'],
  4814. },
  4815. frontend: true
  4816. )
  4817. Setting.create_if_not_exists(
  4818. title: __('GitHub config'),
  4819. name: 'github_config',
  4820. area: 'Integration::GitHub',
  4821. description: __('Stores the GitHub configuration.'),
  4822. options: {},
  4823. state: {
  4824. endpoint: 'https://api.github.com/graphql',
  4825. },
  4826. preferences: {
  4827. prio: 2,
  4828. permission: ['admin.integration'],
  4829. },
  4830. frontend: false,
  4831. )
  4832. Setting.create_if_not_exists(
  4833. title: __('Defines sync transaction backend.'),
  4834. name: '0100_trigger',
  4835. area: 'Transaction::Backend::Sync',
  4836. description: __('Defines the transaction backend to execute triggers.'),
  4837. options: {},
  4838. state: 'Transaction::Trigger',
  4839. frontend: false
  4840. )
  4841. Setting.create_if_not_exists(
  4842. title: __('Defines transaction backend.'),
  4843. name: '0100_notification',
  4844. area: 'Transaction::Backend::Async',
  4845. description: __('Defines the transaction backend to send agent notifications.'),
  4846. options: {},
  4847. state: 'Transaction::Notification',
  4848. frontend: false
  4849. )
  4850. Setting.create_if_not_exists(
  4851. title: __('Defines transaction backend.'),
  4852. name: '1000_signature_detection',
  4853. area: 'Transaction::Backend::Async',
  4854. description: __('Defines the transaction backend to detect customer signatures in emails.'),
  4855. options: {},
  4856. state: 'Transaction::SignatureDetection',
  4857. frontend: false
  4858. )
  4859. Setting.create_if_not_exists(
  4860. title: __('Defines transaction backend.'),
  4861. name: '6000_slack_webhook',
  4862. area: 'Transaction::Backend::Async',
  4863. description: __('Defines the transaction backend which posts messages to Slack (http://www.slack.com).'),
  4864. options: {},
  4865. state: 'Transaction::Slack',
  4866. frontend: false
  4867. )
  4868. Setting.create_if_not_exists(
  4869. title: __('Slack integration'),
  4870. name: 'slack_integration',
  4871. area: 'Integration::Switch',
  4872. description: __('Defines if Slack (http://www.slack.org) is enabled or not.'),
  4873. options: {
  4874. form: [
  4875. {
  4876. display: '',
  4877. null: true,
  4878. name: 'slack_integration',
  4879. tag: 'boolean',
  4880. options: {
  4881. true => 'yes',
  4882. false => 'no',
  4883. },
  4884. },
  4885. ],
  4886. },
  4887. state: false,
  4888. preferences: {
  4889. prio: 1,
  4890. permission: ['admin.integration'],
  4891. },
  4892. frontend: false
  4893. )
  4894. Setting.create_if_not_exists(
  4895. title: __('Slack config'),
  4896. name: 'slack_config',
  4897. area: 'Integration::Slack',
  4898. description: __('Defines the Slack config.'),
  4899. options: {},
  4900. state: {
  4901. items: []
  4902. },
  4903. preferences: {
  4904. prio: 2,
  4905. permission: ['admin.integration'],
  4906. },
  4907. frontend: false,
  4908. )
  4909. Setting.create_if_not_exists(
  4910. title: __('sipgate.io integration'),
  4911. name: 'sipgate_integration',
  4912. area: 'Integration::Switch',
  4913. description: __('Defines if sipgate.io (http://www.sipgate.io) is enabled or not.'),
  4914. options: {
  4915. form: [
  4916. {
  4917. display: '',
  4918. null: true,
  4919. name: 'sipgate_integration',
  4920. tag: 'boolean',
  4921. options: {
  4922. true => 'yes',
  4923. false => 'no',
  4924. },
  4925. },
  4926. ],
  4927. },
  4928. state: false,
  4929. preferences: {
  4930. prio: 1,
  4931. trigger: ['menu:render', 'cti:reload'],
  4932. authentication: true,
  4933. permission: ['admin.integration'],
  4934. },
  4935. frontend: true
  4936. )
  4937. Setting.create_if_not_exists(
  4938. title: __('sipgate.io Token'),
  4939. name: 'sipgate_token',
  4940. area: 'Integration::Sipgate',
  4941. description: __('Token for Sipgate.'),
  4942. options: {
  4943. form: [
  4944. {
  4945. display: '',
  4946. null: false,
  4947. name: 'sipgate_token',
  4948. tag: 'input',
  4949. },
  4950. ],
  4951. },
  4952. state: ENV['SIPGATE_TOKEN'] || SecureRandom.urlsafe_base64(20),
  4953. preferences: {
  4954. permission: ['admin.integration'],
  4955. },
  4956. frontend: false
  4957. )
  4958. Setting.create_if_not_exists(
  4959. title: __('sipgate.io config'),
  4960. name: 'sipgate_config',
  4961. area: 'Integration::Sipgate',
  4962. description: __('Defines the sipgate.io config.'),
  4963. options: {},
  4964. state: { 'outbound' => { 'routing_table' => [], 'default_caller_id' => '' }, 'inbound' => { 'block_caller_ids' => [] } },
  4965. preferences: {
  4966. prio: 2,
  4967. permission: ['admin.integration'],
  4968. },
  4969. frontend: false,
  4970. )
  4971. Setting.create_if_not_exists(
  4972. title: __('sipgate.io alternative FQDN'),
  4973. name: 'sipgate_alternative_fqdn',
  4974. area: 'Integration::Sipgate::Expert',
  4975. description: __('Alternative FQDN for callbacks if you operate Zammad in an internal network.'),
  4976. options: {
  4977. form: [
  4978. {
  4979. display: '',
  4980. null: false,
  4981. name: 'sipgate_alternative_fqdn',
  4982. tag: 'input',
  4983. },
  4984. ],
  4985. },
  4986. state: '',
  4987. preferences: {
  4988. permission: ['admin.integration'],
  4989. },
  4990. frontend: false
  4991. )
  4992. Setting.create_if_not_exists(
  4993. title: __('CTI integration'),
  4994. name: 'cti_integration',
  4995. area: 'Integration::Switch',
  4996. description: __('Defines if generic CTI integration is enabled or not.'),
  4997. options: {
  4998. form: [
  4999. {
  5000. display: '',
  5001. null: true,
  5002. name: 'cti_integration',
  5003. tag: 'boolean',
  5004. options: {
  5005. true => 'yes',
  5006. false => 'no',
  5007. },
  5008. },
  5009. ],
  5010. },
  5011. state: false,
  5012. preferences: {
  5013. prio: 1,
  5014. trigger: ['menu:render', 'cti:reload'],
  5015. authentication: true,
  5016. permission: ['admin.integration'],
  5017. },
  5018. frontend: true
  5019. )
  5020. Setting.create_if_not_exists(
  5021. title: __('CTI config'),
  5022. name: 'cti_config',
  5023. area: 'Integration::Cti',
  5024. description: __('Defines the CTI config.'),
  5025. options: {},
  5026. state: { 'outbound' => { 'routing_table' => [], 'default_caller_id' => '' }, 'inbound' => { 'block_caller_ids' => [] } },
  5027. preferences: {
  5028. prio: 2,
  5029. permission: ['admin.integration'],
  5030. },
  5031. frontend: false,
  5032. )
  5033. Setting.create_if_not_exists(
  5034. title: __('CTI Token'),
  5035. name: 'cti_token',
  5036. area: 'Integration::Cti',
  5037. description: __('Token for CTI.'),
  5038. options: {
  5039. form: [
  5040. {
  5041. display: '',
  5042. null: false,
  5043. name: 'cti_token',
  5044. tag: 'input',
  5045. },
  5046. ],
  5047. },
  5048. state: ENV['CTI_TOKEN'] || SecureRandom.urlsafe_base64(20),
  5049. preferences: {
  5050. permission: ['admin.integration'],
  5051. },
  5052. frontend: false
  5053. )
  5054. Setting.create_if_not_exists(
  5055. title: __('CTI customer last activity'),
  5056. name: 'cti_customer_last_activity',
  5057. area: 'Integration::Cti',
  5058. description: __('Defines the duration of customer activity (in seconds) on a call until the user profile dialog is shown.'),
  5059. options: {},
  5060. state: 30.days,
  5061. preferences: {
  5062. prio: 2,
  5063. permission: ['admin.integration'],
  5064. },
  5065. frontend: false,
  5066. )
  5067. Setting.create_if_not_exists(
  5068. title: __('Placetel integration'),
  5069. name: 'placetel_integration',
  5070. area: 'Integration::Switch',
  5071. description: __('Defines if Placetel (http://www.placetel.de) is enabled or not.'),
  5072. options: {
  5073. form: [
  5074. {
  5075. display: '',
  5076. null: true,
  5077. name: 'placetel_integration',
  5078. tag: 'boolean',
  5079. options: {
  5080. true => 'yes',
  5081. false => 'no',
  5082. },
  5083. },
  5084. ],
  5085. },
  5086. state: false,
  5087. preferences: {
  5088. prio: 1,
  5089. trigger: ['menu:render', 'cti:reload'],
  5090. authentication: true,
  5091. permission: ['admin.integration'],
  5092. },
  5093. frontend: true
  5094. )
  5095. Setting.create_if_not_exists(
  5096. title: __('Placetel config'),
  5097. name: 'placetel_config',
  5098. area: 'Integration::Placetel',
  5099. description: __('Defines the Placetel config.'),
  5100. options: {},
  5101. state: { 'outbound' => { 'routing_table' => [], 'default_caller_id' => '' }, 'inbound' => { 'block_caller_ids' => [] } },
  5102. preferences: {
  5103. prio: 2,
  5104. permission: ['admin.integration'],
  5105. cache: ['placetelGetVoipUsers'],
  5106. },
  5107. frontend: false,
  5108. )
  5109. Setting.create_if_not_exists(
  5110. title: __('Placetel Token'),
  5111. name: 'placetel_token',
  5112. area: 'Integration::Placetel',
  5113. description: __('Defines the token for Placetel.'),
  5114. options: {
  5115. form: [
  5116. {
  5117. display: '',
  5118. null: false,
  5119. name: 'placetel_token',
  5120. tag: 'input',
  5121. },
  5122. ],
  5123. },
  5124. state: ENV['PLACETEL_TOKEN'] || SecureRandom.urlsafe_base64(20),
  5125. preferences: {
  5126. permission: ['admin.integration'],
  5127. },
  5128. frontend: false
  5129. )
  5130. Setting.create_if_not_exists(
  5131. title: __('Clearbit integration'),
  5132. name: 'clearbit_integration',
  5133. area: 'Integration::Switch',
  5134. description: __('Defines if Clearbit (http://www.clearbit.com) is enabled or not.'),
  5135. options: {
  5136. form: [
  5137. {
  5138. display: '',
  5139. null: true,
  5140. name: 'clearbit_integration',
  5141. tag: 'boolean',
  5142. options: {
  5143. true => 'yes',
  5144. false => 'no',
  5145. },
  5146. },
  5147. ],
  5148. },
  5149. state: false,
  5150. preferences: {
  5151. prio: 1,
  5152. permission: ['admin.integration'],
  5153. },
  5154. frontend: false
  5155. )
  5156. Setting.create_if_not_exists(
  5157. title: __('Clearbit config'),
  5158. name: 'clearbit_config',
  5159. area: 'Integration::Clearbit',
  5160. description: __('Defines the Clearbit config.'),
  5161. options: {},
  5162. state: {},
  5163. frontend: false,
  5164. preferences: {
  5165. prio: 2,
  5166. permission: ['admin.integration'],
  5167. },
  5168. )
  5169. Setting.create_if_not_exists(
  5170. title: __('Defines transaction backend.'),
  5171. name: '9000_clearbit_enrichment',
  5172. area: 'Transaction::Backend::Async',
  5173. description: __('Defines the transaction backend which will enrich customer and organization information from Clearbit (http://www.clearbit.com).'),
  5174. options: {},
  5175. state: 'Transaction::ClearbitEnrichment',
  5176. frontend: false
  5177. )
  5178. Setting.create_if_not_exists(
  5179. title: __('Defines transaction backend.'),
  5180. name: '9100_cti_caller_id_detection',
  5181. area: 'Transaction::Backend::Async',
  5182. description: __('Defines the transaction backend which detects caller IDs in objects and stores them for CTI lookups.'),
  5183. options: {},
  5184. state: 'Transaction::CtiCallerIdDetection',
  5185. frontend: false
  5186. )
  5187. Setting.create_if_not_exists(
  5188. title: __('Defines transaction backend.'),
  5189. name: '9200_time_based_trigger',
  5190. area: 'Transaction::Backend::Async',
  5191. description: __('Defines the transaction backend which executes time based triggers.'),
  5192. options: {},
  5193. state: 'Transaction::TimeBasedTrigger',
  5194. frontend: false
  5195. )
  5196. Setting.create_if_not_exists(
  5197. title: __('Set agent limit'),
  5198. name: 'system_agent_limit',
  5199. area: 'Core::Online',
  5200. description: __('Defines the agent limit.'),
  5201. options: {},
  5202. state: false,
  5203. preferences: { online_service_disable: true },
  5204. frontend: false
  5205. )
  5206. Setting.create_if_not_exists(
  5207. title: __('HTML Email CSS Font'),
  5208. name: 'html_email_css_font',
  5209. area: 'Core',
  5210. description: __('Defines the CSS font information for HTML emails.'),
  5211. options: {},
  5212. state: "font-family:'Helvetica Neue', Helvetica, Arial, Geneva, sans-serif; font-size: 12px;",
  5213. preferences: {
  5214. permission: ['admin'],
  5215. },
  5216. frontend: false
  5217. )
  5218. Setting.create_if_not_exists(
  5219. title: __('HTML Sanitizer Processing Timeout'),
  5220. name: 'html_sanitizer_processing_timeout',
  5221. area: 'Core',
  5222. description: __('Defines processing timeout for the html sanitizer.'),
  5223. options: {},
  5224. state: 20,
  5225. preferences: {},
  5226. frontend: false
  5227. )
  5228. # add the dashboard stats backend for 'Stats::TicketWaitingTime'
  5229. Setting.create_if_not_exists(
  5230. title: __('Stats Backend'),
  5231. name: 'Stats::TicketWaitingTime',
  5232. area: 'Dashboard::Stats',
  5233. description: __('Defines a dashboard stats backend that gets scheduled automatically.'),
  5234. options: {},
  5235. state: 'Stats::TicketWaitingTime',
  5236. preferences: {
  5237. permission: ['ticket.agent'],
  5238. prio: 1,
  5239. },
  5240. frontend: false
  5241. )
  5242. # add the dashboard stats backend for 'Stats::TicketEscalation'
  5243. Setting.create_if_not_exists(
  5244. title: __('Stats Backend'),
  5245. name: 'Stats::TicketEscalation',
  5246. area: 'Dashboard::Stats',
  5247. description: __('Defines a dashboard stats backend that gets scheduled automatically.'),
  5248. options: {},
  5249. state: 'Stats::TicketEscalation',
  5250. preferences: {
  5251. permission: ['ticket.agent'],
  5252. prio: 2,
  5253. },
  5254. frontend: false
  5255. )
  5256. # add the dashboard stats backend for 'Stats::TicketChannelDistribution'
  5257. Setting.create_if_not_exists(
  5258. title: __('Stats Backend'),
  5259. name: 'Stats::TicketChannelDistribution',
  5260. area: 'Dashboard::Stats',
  5261. description: __('Defines a dashboard stats backend that gets scheduled automatically.'),
  5262. options: {},
  5263. state: 'Stats::TicketChannelDistribution',
  5264. preferences: {
  5265. permission: ['ticket.agent'],
  5266. prio: 3,
  5267. },
  5268. frontend: false
  5269. )
  5270. # add the dashboard stats backend for 'Stats::TicketLoadMeasure'
  5271. Setting.create_if_not_exists(
  5272. title: __('Stats Backend'),
  5273. name: 'Stats::TicketLoadMeasure',
  5274. area: 'Dashboard::Stats',
  5275. description: __('Defines a dashboard stats backend that gets scheduled automatically.'),
  5276. options: {},
  5277. state: 'Stats::TicketLoadMeasure',
  5278. preferences: {
  5279. permission: ['ticket.agent'],
  5280. prio: 4,
  5281. },
  5282. frontend: false
  5283. )
  5284. # add the dashboard stats backend for 'Stats::TicketInProcess'
  5285. Setting.create_if_not_exists(
  5286. title: __('Stats Backend'),
  5287. name: 'Stats::TicketInProcess',
  5288. area: 'Dashboard::Stats',
  5289. description: __('Defines a dashboard stats backend that gets scheduled automatically.'),
  5290. options: {},
  5291. state: 'Stats::TicketInProcess',
  5292. preferences: {
  5293. permission: ['ticket.agent'],
  5294. prio: 5,
  5295. },
  5296. frontend: false
  5297. )
  5298. # add the dashboard stats backend for 'Stats::TicketReopen'
  5299. Setting.create_if_not_exists(
  5300. title: __('Stats Backend'),
  5301. name: 'Stats::TicketReopen',
  5302. area: 'Dashboard::Stats',
  5303. description: __('Defines a dashboard stats backend that gets scheduled automatically.'),
  5304. options: {},
  5305. state: 'Stats::TicketReopen',
  5306. preferences: {
  5307. permission: ['ticket.agent'],
  5308. prio: 6,
  5309. },
  5310. frontend: false
  5311. )
  5312. Setting.create_if_not_exists(
  5313. title: __('Knowledge Base multilingual support'),
  5314. name: 'kb_multi_lingual_support',
  5315. area: 'Kb::Core',
  5316. description: __('Support of multilingual Knowledge Base.'),
  5317. options: {},
  5318. state: true,
  5319. preferences: { online_service_disable: true },
  5320. frontend: true
  5321. )
  5322. Setting.create_if_not_exists(
  5323. title: __('Knowledge Base active'),
  5324. name: 'kb_active',
  5325. area: 'Kb::Core',
  5326. description: __('Defines if Knowledge Base navbar button is enabled.'),
  5327. state: true,
  5328. preferences: {
  5329. prio: 1,
  5330. trigger: ['menu:render'],
  5331. authentication: true,
  5332. permission: ['admin.knowledge_base'],
  5333. },
  5334. frontend: true
  5335. )
  5336. Setting.create_if_not_exists(
  5337. title: __('Knowledge Base active publicly'),
  5338. name: 'kb_active_publicly',
  5339. area: 'Kb::Core',
  5340. description: __('Defines if Knowledge Base navbar button is enabled for users without Knowledge Base permission.'),
  5341. state: false,
  5342. preferences: {
  5343. prio: 1,
  5344. trigger: ['menu:render'],
  5345. authentication: true,
  5346. permission: [],
  5347. },
  5348. frontend: true
  5349. )
  5350. Setting.create_if_not_exists(
  5351. title: __('Defines the timeframe during which a self-created note can be deleted.'),
  5352. name: 'ui_ticket_zoom_article_delete_timeframe',
  5353. area: 'UI::TicketZoomArticle',
  5354. description: __("Set timeframe in seconds. If it's set to 0 you can delete notes without time limits"),
  5355. options: {},
  5356. state: 600,
  5357. preferences: {
  5358. permission: ['admin.ui']
  5359. },
  5360. frontend: true
  5361. )
  5362. Setting.create_if_not_exists(
  5363. title: __('Hint for adding an article to an existing ticket.'),
  5364. name: 'ui_ticket_add_article_hint',
  5365. area: 'UI::TicketZoomArticle',
  5366. description: __('Highlights if the note a user is writing is public or private'),
  5367. options: {},
  5368. state: {
  5369. # 'note-internal' => 'You are writing an |internal note|, only people of your organization will see it.',
  5370. # 'note-public' => 'You are writing a |public note|.',
  5371. # 'phone-internal' => 'You are writing an |internal phone note|, only people of your organization will see it.',
  5372. # 'phone-public' => 'You are writing a |public phone note|.',
  5373. # ....
  5374. },
  5375. preferences: {
  5376. permission: ['admin.ui'],
  5377. },
  5378. frontend: true
  5379. )
  5380. Setting.create_if_not_exists(
  5381. title: __('S/MIME integration'),
  5382. name: 'smime_integration',
  5383. area: 'Integration::Switch',
  5384. description: __('Defines if S/MIME encryption is enabled or not.'),
  5385. options: {
  5386. form: [
  5387. {
  5388. display: '',
  5389. null: true,
  5390. name: 'smime_integration',
  5391. tag: 'boolean',
  5392. options: {
  5393. true => 'yes',
  5394. false => 'no',
  5395. },
  5396. },
  5397. ],
  5398. },
  5399. state: false,
  5400. preferences: {
  5401. prio: 1,
  5402. authentication: true,
  5403. permission: ['admin.integration'],
  5404. },
  5405. frontend: true
  5406. )
  5407. Setting.create_if_not_exists(
  5408. title: __('S/MIME config'),
  5409. name: 'smime_config',
  5410. area: 'Integration::SMIME',
  5411. description: __('Defines the S/MIME config.'),
  5412. options: {},
  5413. state: {},
  5414. preferences: {
  5415. prio: 2,
  5416. permission: ['admin.integration'],
  5417. },
  5418. frontend: true,
  5419. )
  5420. Setting.create_if_not_exists(
  5421. title: __('PGP integration'),
  5422. name: 'pgp_integration',
  5423. area: 'Integration::Switch',
  5424. description: __('Defines if PGP encryption is enabled or not.'),
  5425. options: {
  5426. form: [
  5427. {
  5428. display: '',
  5429. null: true,
  5430. name: 'pgp_integration',
  5431. tag: 'boolean',
  5432. options: {
  5433. true => 'yes',
  5434. false => 'no',
  5435. },
  5436. },
  5437. ],
  5438. },
  5439. state: false,
  5440. preferences: {
  5441. prio: 1,
  5442. authentication: true,
  5443. permission: ['admin.integration'],
  5444. },
  5445. frontend: true
  5446. )
  5447. Setting.create_if_not_exists(
  5448. title: __('PGP config'),
  5449. name: 'pgp_config',
  5450. area: 'Integration::PGP',
  5451. description: __('Defines the PGP config.'),
  5452. options: {},
  5453. state: {},
  5454. preferences: {
  5455. prio: 2,
  5456. permission: ['admin.integration'],
  5457. },
  5458. frontend: true,
  5459. )
  5460. Setting.create_if_not_exists(
  5461. title: __('PGP Recipient Alias Configuration'),
  5462. name: 'pgp_recipient_alias_configuration',
  5463. area: 'Core::Integration::PGP',
  5464. description: __('Defines if the PGP recipient alias configuration is enabled or not.'),
  5465. options: {},
  5466. state: false,
  5467. preferences: { online_service_disable: true },
  5468. frontend: true
  5469. )
  5470. Setting.create_if_not_exists(
  5471. title: __('Authentication via %s'),
  5472. name: 'auth_sso',
  5473. area: 'Security::ThirdPartyAuthentication',
  5474. description: __('Enables button for user authentication via %s. The button will redirect to /auth/sso on user interaction.'),
  5475. options: {
  5476. form: [
  5477. {
  5478. display: '',
  5479. null: true,
  5480. name: 'auth_sso',
  5481. tag: 'boolean',
  5482. options: {
  5483. true => 'yes',
  5484. false => 'no',
  5485. },
  5486. },
  5487. ],
  5488. },
  5489. preferences: {
  5490. controller: 'SettingsAreaSwitch',
  5491. sub: {},
  5492. title_i18n: [__('SSO')],
  5493. description_i18n: [__('SSO')],
  5494. permission: ['admin.security'],
  5495. },
  5496. state: false,
  5497. frontend: true
  5498. )
  5499. Setting.create_if_not_exists(
  5500. title: __('Show calendar weeks in the picker of date/datetime fields'),
  5501. name: 'datepicker_show_calendar_weeks',
  5502. area: 'System::UI',
  5503. description: __('Defines if calendar weeks are shown in the picker of date/datetime fields to easily select the correct date.'),
  5504. options: {
  5505. form: [
  5506. {
  5507. display: '',
  5508. null: true,
  5509. name: 'datepicker_show_calendar_weeks',
  5510. tag: 'boolean',
  5511. options: {
  5512. true => 'yes',
  5513. false => 'no',
  5514. },
  5515. },
  5516. ],
  5517. },
  5518. state: false,
  5519. preferences: {
  5520. render: true,
  5521. prio: 4,
  5522. permission: ['admin.system'],
  5523. },
  5524. frontend: true
  5525. )
  5526. Setting.create_if_not_exists(
  5527. title: __('Security Keys'),
  5528. name: 'two_factor_authentication_method_security_keys',
  5529. area: 'Security::TwoFactorAuthentication',
  5530. description: __('Defines if the two-factor authentication method security keys is enabled or not.'),
  5531. options: {
  5532. form: [
  5533. {
  5534. display: '',
  5535. null: true,
  5536. name: 'two_factor_authentication_method_security_keys',
  5537. tag: 'boolean',
  5538. options: {
  5539. true => 'yes',
  5540. false => 'no',
  5541. },
  5542. },
  5543. ],
  5544. },
  5545. preferences: {
  5546. controller: 'SettingsAreaSwitch',
  5547. sub: {},
  5548. permission: ['admin.security'],
  5549. prio: 1000,
  5550. display_name: __('Security Keys'),
  5551. help: __('Complete the sign-in with your security key.'),
  5552. icon: 'security-key',
  5553. },
  5554. state: false,
  5555. frontend: true
  5556. )
  5557. Setting.create_if_not_exists(
  5558. title: __('Authenticator App'),
  5559. name: 'two_factor_authentication_method_authenticator_app',
  5560. area: 'Security::TwoFactorAuthentication',
  5561. description: __('Defines if the two-factor authentication method authenticator app is enabled or not.'),
  5562. options: {
  5563. form: [
  5564. {
  5565. display: '',
  5566. null: true,
  5567. name: 'two_factor_authentication_method_authenticator_app',
  5568. tag: 'boolean',
  5569. options: {
  5570. true => 'yes',
  5571. false => 'no',
  5572. },
  5573. },
  5574. ],
  5575. },
  5576. preferences: {
  5577. controller: 'SettingsAreaSwitch',
  5578. sub: {},
  5579. permission: ['admin.security'],
  5580. prio: 2000,
  5581. display_name: __('Authenticator App'),
  5582. help: __('Get the security code from the authenticator app on your device.'),
  5583. icon: 'mobile-code',
  5584. },
  5585. state: false,
  5586. frontend: true
  5587. )
  5588. Setting.create_if_not_exists(
  5589. title: __('Enable Recovery Codes'),
  5590. name: 'two_factor_authentication_recovery_codes',
  5591. area: 'Security::TwoFactorAuthentication',
  5592. description: __('Defines if recovery codes can be used by users in the event they lose access to other two-factor authentication methods.'),
  5593. options: {
  5594. form: [
  5595. {
  5596. display: '',
  5597. null: true,
  5598. name: 'two_factor_authentication_recovery_codes',
  5599. tag: 'boolean',
  5600. options: {
  5601. true => 'yes',
  5602. false => 'no',
  5603. },
  5604. },
  5605. ],
  5606. },
  5607. preferences: {
  5608. prio: 5000,
  5609. permission: ['admin.security'],
  5610. },
  5611. state: true,
  5612. frontend: true
  5613. )
  5614. Setting.create_if_not_exists(
  5615. title: __('Enforce the set up of the two-factor authentication'),
  5616. name: 'two_factor_authentication_enforce_role_ids',
  5617. area: 'Security::TwoFactorAuthentication',
  5618. description: __('Requires the set up of the two-factor authentication for certain user roles.'),
  5619. options: {
  5620. form: [
  5621. {
  5622. display: __('Enforced for user roles'),
  5623. null: true,
  5624. name: 'two_factor_authentication_enforce_role_ids',
  5625. tag: 'column_select',
  5626. relation: 'Role',
  5627. translate: true,
  5628. },
  5629. ],
  5630. },
  5631. preferences: {
  5632. permission: ['admin.security'],
  5633. prio: 6000,
  5634. },
  5635. state: [2],
  5636. frontend: true
  5637. )
  5638. Setting.create_if_not_exists(
  5639. title: __('Ticket Organization Reassignment'),
  5640. name: 'ticket_organization_reassignment',
  5641. area: 'Ticket::Base',
  5642. description: __('Defines if the change of the primary organization of a user will update the 100 most recent tickets for this user as well.'),
  5643. options: {
  5644. form: [
  5645. {
  5646. display: '',
  5647. null: false,
  5648. name: 'ticket_organization_reassignment',
  5649. tag: 'boolean',
  5650. options: {
  5651. true => __('Update the most recent tickets.'),
  5652. false => __('Do not update any tickets.'),
  5653. },
  5654. translate: true,
  5655. },
  5656. ],
  5657. },
  5658. state: true,
  5659. preferences: {
  5660. prio: 4000,
  5661. permission: ['admin.ticket'],
  5662. },
  5663. frontend: true
  5664. )