seeds.rb 70 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866
  1. # encoding: utf-8
  2. # This file should contain all the record creation needed to seed the database with its default values.
  3. # The data can then be loaded with the rake db:seed (or created alongside the db with db:setup).
  4. #
  5. # Examples:
  6. #
  7. # cities = City.create([{ :name => 'Chicago' }, { :name => 'Copenhagen' }])
  8. # Mayor.create(:name => 'Emanuel', :city => cities.first)
  9. Setting.create(
  10. :title => 'Product Name',
  11. :name => 'product_name',
  12. :area => 'System::Base',
  13. :description => 'Defines the name of the application, shown in the web interface, tabs and title bar of the web browser.',
  14. :options => {
  15. :form => [
  16. {
  17. :display => '',
  18. :null => false,
  19. :name => 'product_name',
  20. :tag => 'input',
  21. },
  22. ],
  23. },
  24. :state => {
  25. :value => 'Zammad',
  26. },
  27. :frontend => true
  28. )
  29. Setting.create(
  30. :title => 'Organization',
  31. :name => 'organization',
  32. :area => 'System::Base',
  33. :description => 'Will also be included in emails as an X-Header.',
  34. :options => {
  35. :form => [
  36. {
  37. :display => '',
  38. :null => false,
  39. :name => 'organization',
  40. :tag => 'input',
  41. },
  42. ],
  43. },
  44. :state => {
  45. :value => 'Example Inc.',
  46. },
  47. :frontend => true
  48. )
  49. Setting.create(
  50. :title => 'SystemID',
  51. :name => 'system_id',
  52. :area => 'System::Base',
  53. :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).',
  54. :options => {
  55. :form => [
  56. {
  57. :display => '',
  58. :null => true,
  59. :name => 'system_id',
  60. :tag => 'select',
  61. :options => {
  62. '10' => '10',
  63. '11' => '11',
  64. '12' => '12',
  65. '13' => '13',
  66. },
  67. },
  68. ],
  69. },
  70. :state => {
  71. :value => '10',
  72. },
  73. :frontend => true
  74. )
  75. Setting.create(
  76. :title => 'Fully Qualified Domain Name',
  77. :name => 'fqdn',
  78. :area => 'System::Base',
  79. :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.',
  80. :options => {
  81. :form => [
  82. {
  83. :display => '',
  84. :null => false,
  85. :name => 'fqdn',
  86. :tag => 'input',
  87. },
  88. ],
  89. },
  90. :state => {
  91. :value => 'zammad.example.com',
  92. },
  93. :frontend => true
  94. )
  95. Setting.create(
  96. :title => 'http type',
  97. :name => 'http_type',
  98. :area => 'System::Base',
  99. :description => 'Defines the type of protocol, used by ther web server, to serve the application. If https protocol will be used instead of plain http, it must be specified it here. Since this has no affect on the web server\'s settings or behavior, it will not change the method of access to the application and, if it is wrong, it will not prevent you from logging into the application. This setting is used as a variable, #{setting.http_type} which is found in all forms of messaging used by the application, to build links to the tickets within your system.',
  100. :options => {
  101. :form => [
  102. {
  103. :display => '',
  104. :null => true,
  105. :name => 'http_type',
  106. :tag => 'select',
  107. :options => {
  108. 'https' => 'https',
  109. 'http' => 'http',
  110. },
  111. },
  112. ],
  113. },
  114. :state => {
  115. :value => 'http',
  116. },
  117. :frontend => true
  118. )
  119. Setting.create(
  120. :title => 'Storage Mechanism',
  121. :name => 'storage',
  122. :area => 'System::Storage',
  123. :description => '"Database" stores all attachments in the database (not recommended for storing big). "Filesystem" stores the data on the filesystem; this is faster but the webserver should run under the Zammad user. You can switch between the modules even on a system that is already in production without any loss of data.',
  124. :options => {
  125. :form => [
  126. {
  127. :display => '',
  128. :null => true,
  129. :name => 'storage',
  130. :tag => 'select',
  131. :options => {
  132. 'DB' => 'Database',
  133. 'FS' => 'Filesystem',
  134. },
  135. },
  136. ],
  137. },
  138. :state => {
  139. :value => 'DB',
  140. },
  141. :frontend => false
  142. )
  143. Setting.create(
  144. :title => 'New User Accouts',
  145. :name => 'user_create_account',
  146. :area => 'Security::Authentication',
  147. :description => 'Enables users to create their own account via web interface.',
  148. :options => {
  149. :form => [
  150. {
  151. :display => '',
  152. :null => true,
  153. :name => 'user_create_account',
  154. :tag => 'boolean',
  155. :options => {
  156. true => 'yes',
  157. false => 'no',
  158. },
  159. },
  160. ],
  161. },
  162. :state => {
  163. :value => true,
  164. },
  165. :frontend => true
  166. )
  167. Setting.create(
  168. :title => 'Lost Password',
  169. :name => 'user_lost_password',
  170. :area => 'Security::Authentication',
  171. :description => 'Activates lost password feature for agents, in the agent interface.',
  172. :options => {
  173. :form => [
  174. {
  175. :display => '',
  176. :null => true,
  177. :name => 'user_lost_password',
  178. :tag => 'boolean',
  179. :options => {
  180. true => 'yes',
  181. false => 'no',
  182. },
  183. },
  184. ],
  185. },
  186. :state => {
  187. :value => true,
  188. },
  189. :frontend => true
  190. )
  191. Setting.create(
  192. :title => 'Switch to User',
  193. :name => 'switch_to_user',
  194. :area => 'Security::Authentication',
  195. :description => 'Allows the administrators to login as other users, via the users administration panel.',
  196. :options => {
  197. :form => [
  198. {
  199. :display => '',
  200. :null => true,
  201. :name => 'switch_to_user',
  202. :tag => 'boolean',
  203. :options => {
  204. true => 'yes',
  205. false => 'no',
  206. },
  207. },
  208. ],
  209. },
  210. :state => {
  211. :value => false,
  212. },
  213. :frontend => true
  214. )
  215. Setting.create(
  216. :title => 'Autentication via Database',
  217. :name => 'auth_db',
  218. :area => 'Security::Authentication',
  219. :description => 'Enables user authentication via database.',
  220. :options => {
  221. :form => [
  222. {
  223. :display => '',
  224. :null => true,
  225. :name => 'auth_db',
  226. :tag => 'boolean',
  227. :options => {
  228. true => 'yes',
  229. false => 'no',
  230. },
  231. },
  232. ],
  233. },
  234. :state => {
  235. :value => true,
  236. },
  237. :frontend => true
  238. )
  239. Setting.create(
  240. :title => 'Autentication via Twitter',
  241. :name => 'auth_twitter',
  242. :area => 'Security::Authentication',
  243. :description => 'Enables user authentication via twitter. Register your app first at https://dev.twitter.com/apps',
  244. :options => {
  245. :form => [
  246. {
  247. :display => '',
  248. :null => true,
  249. :name => 'auth_twitter',
  250. :tag => 'boolean',
  251. :options => {
  252. true => 'yes',
  253. false => 'no',
  254. },
  255. },
  256. ],
  257. },
  258. :state => {
  259. :value => false,
  260. },
  261. :frontend => true
  262. )
  263. Setting.create(
  264. :title => 'Twitter App Credentials',
  265. :name => 'auth_twitter_credentials',
  266. :area => 'Security::Authentication',
  267. :description => 'App credentials for Twitter.',
  268. :options => {
  269. :form => [
  270. {
  271. :display => 'Twitter Key',
  272. :null => true,
  273. :name => 'key',
  274. :tag => 'input',
  275. },
  276. {
  277. :display => 'Twitter Secret',
  278. :null => true,
  279. :name => 'secret',
  280. :tag => 'input',
  281. },
  282. ],
  283. },
  284. :state => {
  285. :value => {}
  286. },
  287. :frontend => false
  288. )
  289. Setting.create(
  290. :title => 'Autentication via Facebook',
  291. :name => 'auth_facebook',
  292. :area => 'Security::Authentication',
  293. :description => 'Enables user authentication via Facebook. Register your app first at https://developers.facebook.com/apps/',
  294. :options => {
  295. :form => [
  296. {
  297. :display => '',
  298. :null => true,
  299. :name => 'auth_facebook',
  300. :tag => 'boolean',
  301. :options => {
  302. true => 'yes',
  303. false => 'no',
  304. },
  305. },
  306. ],
  307. },
  308. :state => {
  309. :value => false,
  310. },
  311. :frontend => true
  312. )
  313. Setting.create(
  314. :title => 'Facebook App Credentials',
  315. :name => 'auth_facebook_credentials',
  316. :area => 'Security::Authentication',
  317. :description => 'App credentials for Facebook.',
  318. :options => {
  319. :form => [
  320. {
  321. :display => 'App ID',
  322. :null => true,
  323. :name => 'app_id',
  324. :tag => 'input',
  325. },
  326. {
  327. :display => 'App Secret',
  328. :null => true,
  329. :name => 'app_secret',
  330. :tag => 'input',
  331. },
  332. ],
  333. },
  334. :state => {
  335. :value => {},
  336. },
  337. :frontend => false
  338. )
  339. Setting.create(
  340. :title => 'Autentication via Google',
  341. :name => 'auth_google_oauth2',
  342. :area => 'Security::Authentication',
  343. :description => 'Enables user authentication via Google.',
  344. :options => {
  345. :form => [
  346. {
  347. :display => '',
  348. :null => true,
  349. :name => 'auth_google_oauth2',
  350. :tag => 'boolean',
  351. :options => {
  352. true => 'yes',
  353. false => 'no',
  354. },
  355. },
  356. ],
  357. },
  358. :state => {
  359. :value => false,
  360. },
  361. :frontend => true
  362. )
  363. Setting.create(
  364. :title => 'Google App Credentials',
  365. :name => 'auth_google_oauth2_credentials',
  366. :area => 'Security::Authentication',
  367. :description => 'Enables user authentication via Google.',
  368. :options => {
  369. :form => [
  370. {
  371. :display => 'Client ID',
  372. :null => true,
  373. :name => 'client_id',
  374. :tag => 'input',
  375. },
  376. {
  377. :display => 'Client Secret',
  378. :null => true,
  379. :name => 'client_secret',
  380. :tag => 'input',
  381. },
  382. ],
  383. },
  384. :state => {
  385. :value => {},
  386. },
  387. :frontend => false
  388. )
  389. Setting.create(
  390. :title => 'Autentication via LinkedIn',
  391. :name => 'auth_linkedin',
  392. :area => 'Security::Authentication',
  393. :description => 'Enables user authentication via LinkedIn.',
  394. :options => {
  395. :form => [
  396. {
  397. :display => '',
  398. :null => true,
  399. :name => 'auth_linkedin',
  400. :tag => 'boolean',
  401. :options => {
  402. true => 'yes',
  403. false => 'no',
  404. },
  405. },
  406. ],
  407. },
  408. :state => {
  409. :value => false,
  410. },
  411. :frontend => true
  412. )
  413. Setting.create(
  414. :title => 'LinkedIn App Credentials',
  415. :name => 'auth_linkedin_credentials',
  416. :area => 'Security::Authentication',
  417. :description => 'Enables user authentication via LinkedIn.',
  418. :options => {
  419. :form => [
  420. {
  421. :display => 'App ID',
  422. :null => true,
  423. :name => 'app_id',
  424. :tag => 'input',
  425. },
  426. {
  427. :display => 'App Secret',
  428. :null => true,
  429. :name => 'app_secret',
  430. :tag => 'input',
  431. },
  432. ],
  433. },
  434. :state => {
  435. :value => {},
  436. },
  437. :frontend => false
  438. )
  439. Setting.create(
  440. :title => 'Minimal size',
  441. :name => 'password_min_size',
  442. :area => 'Security::Password',
  443. :description => 'Password need to have at least minimal size of characters.',
  444. :options => {
  445. :form => [
  446. {
  447. :display => '',
  448. :null => true,
  449. :name => 'password_min_size',
  450. :tag => 'select',
  451. :options => {
  452. 4 => 4,
  453. 5 => 5,
  454. 6 => 6,
  455. 7 => 7,
  456. 8 => 8,
  457. 9 => 9,
  458. 10 => 10,
  459. 11 => 11,
  460. 12 => 12,
  461. },
  462. },
  463. ],
  464. },
  465. :state => {
  466. :value => 6,
  467. },
  468. :frontend => true
  469. )
  470. Setting.create(
  471. :title => '2 lower and 2 upper characters',
  472. :name => 'password_min_2_lower_2_upper_characters',
  473. :area => 'Security::Password',
  474. :description => 'Password need to contain 2 lower and 2 upper characters.',
  475. :options => {
  476. :form => [
  477. {
  478. :display => '',
  479. :null => true,
  480. :name => 'password_min_2_lower_2_upper_characters',
  481. :tag => 'select',
  482. :options => {
  483. 1 => 'yes',
  484. 0 => 'no',
  485. },
  486. },
  487. ],
  488. },
  489. :state => {
  490. :value => 0,
  491. },
  492. :frontend => true
  493. )
  494. Setting.create(
  495. :title => 'Digit required',
  496. :name => 'password_need_digit',
  497. :area => 'Security::Password',
  498. :description => 'Password need to have at least one digit.',
  499. :options => {
  500. :form => [
  501. {
  502. :display => 'Needed',
  503. :null => true,
  504. :name => 'password_need_digit',
  505. :tag => 'select',
  506. :options => {
  507. 1 => 'yes',
  508. 0 => 'no',
  509. },
  510. },
  511. ],
  512. },
  513. :state => {
  514. :value => 0,
  515. },
  516. :frontend => true
  517. )
  518. Setting.create(
  519. :title => 'Maximal failed logins',
  520. :name => 'password_max_login_failed',
  521. :area => 'Security::Password',
  522. :description => 'Maximal faild logins after account is inactive.',
  523. :options => {
  524. :form => [
  525. {
  526. :display => '',
  527. :null => true,
  528. :name => 'password_max_login_failed',
  529. :tag => 'select',
  530. :options => {
  531. 4 => 4,
  532. 5 => 5,
  533. 6 => 6,
  534. 7 => 7,
  535. 8 => 8,
  536. 9 => 9,
  537. 10 => 10,
  538. 11 => 11,
  539. 12 => 12,
  540. },
  541. },
  542. ],
  543. },
  544. :state => {
  545. :value => 6,
  546. },
  547. :frontend => true
  548. )
  549. Setting.create(
  550. :title => 'Ticket Hook',
  551. :name => 'ticket_hook',
  552. :area => 'Ticket::Base',
  553. :description => 'The identifier for a ticket, e.g. Ticket#, Call#, MyTicket#. The default is Ticket#.',
  554. :options => {
  555. :form => [
  556. {
  557. :display => '',
  558. :null => false,
  559. :name => 'ticket_hook',
  560. :tag => 'input',
  561. },
  562. ],
  563. },
  564. :state => {
  565. :value => 'Ticket#',
  566. },
  567. :frontend => true
  568. )
  569. Setting.create(
  570. :title => 'Ticket Hook Divider',
  571. :name => 'ticket_hook_divider',
  572. :area => 'Ticket::Base::Shadow',
  573. :description => 'The divider between TicketHook and ticket number. E.g \': \'.',
  574. :options => {
  575. :form => [
  576. {
  577. :display => '',
  578. :null => true,
  579. :name => 'ticket_hook_divider',
  580. :tag => 'input',
  581. },
  582. ],
  583. },
  584. :state => {
  585. :value => '',
  586. },
  587. :frontend => false
  588. )
  589. Setting.create(
  590. :title => 'Ticket Hook Position',
  591. :name => 'ticket_hook_position',
  592. :area => 'Ticket::Base',
  593. :description => 'The format of the subject. "Left" means "[Ticket#12345] Some Subject", "Right" means "Some Subject [Ticket#12345]", "None" means "Some Subject" and no ticket number. In the last case you should enable PostmasterFollowupSearchInRaw or PostmasterFollowUpSearchInReferences to recognize followups based on email headers and/or body.',
  594. :options => {
  595. :form => [
  596. {
  597. :display => '',
  598. :null => true,
  599. :name => 'ticket_hook_position',
  600. :tag => 'select',
  601. :options => {
  602. 'left' => 'Left',
  603. 'right' => 'Right',
  604. 'none' => 'None',
  605. },
  606. },
  607. ],
  608. },
  609. :state => {
  610. :value => 'right',
  611. },
  612. :frontend => false
  613. )
  614. Setting.create(
  615. :title => 'Ticket Subject Size',
  616. :name => 'ticket_subject_size',
  617. :area => 'Ticket::Base',
  618. :description => 'Max size of the subjects in an email reply.',
  619. :options => {
  620. :form => [
  621. {
  622. :display => '',
  623. :null => false,
  624. :name => 'ticket_subject_size',
  625. :tag => 'input',
  626. },
  627. ],
  628. },
  629. :state => {
  630. :value => '110',
  631. },
  632. :frontend => false
  633. )
  634. Setting.create(
  635. :title => 'Ticket Subject Reply',
  636. :name => 'ticket_subject_re',
  637. :area => 'Ticket::Base',
  638. :description => 'The text at the beginning of the subject in an email reply, e.g. RE, AW, or AS.',
  639. :options => {
  640. :form => [
  641. {
  642. :display => '',
  643. :null => true,
  644. :name => 'ticket_subject_re',
  645. :tag => 'input',
  646. },
  647. ],
  648. },
  649. :state => {
  650. :value => 'RE',
  651. },
  652. :frontend => false
  653. )
  654. #Setting.create(
  655. # :title => 'Ticket Subject Forward',
  656. # :name => 'ticket_subject_fw',
  657. # :area => 'Ticket::Base',
  658. # :description => 'The text at the beginning of the subject when an email is forwarded, e.g. FW, Fwd, or WG.',
  659. # :state => {
  660. # :value => 'FW',
  661. # },
  662. # :frontend => false
  663. #)
  664. Setting.create(
  665. :title => 'Ticket Number Format',
  666. :name => 'ticket_number',
  667. :area => 'Ticket::Number',
  668. :description => 'Selects the ticket number generator module. "Increment" increments the ticket
  669. number, the SystemID and the counter are used with SystemID.Counter format (e.g. 1010138, 1010139).
  670. With "Date" the ticket numbers will be generated by the current date, the SystemID and the counter.
  671. The format looks like Year.Month.Day.SystemID.counter (e.g. 201206231010138, 201206231010139).
  672. With param "Checksum => true" the counter will be appended as checksum to the string. The format
  673. looks like SystemID.Counter.CheckSum (e. g. 10101384, 10101392) or Year.Month.Day.SystemID.Counter.CheckSum (e.g. 2012070110101520, 2012070110101535).',
  674. :options => {
  675. :form => [
  676. {
  677. :display => '',
  678. :null => true,
  679. :name => 'ticket_number',
  680. :tag => 'select',
  681. :options => {
  682. 'increment' => 'Increment (SystemID.Counter)',
  683. 'date' => 'Date (Year.Month.Day.SystemID.Counter)',
  684. },
  685. },
  686. ],
  687. },
  688. :state => {
  689. :value => 'increment',
  690. },
  691. :frontend => false
  692. )
  693. Setting.create(
  694. :title => 'Ticket Number Increment',
  695. :name => 'ticket_number_increment',
  696. :area => 'Ticket::Number',
  697. :description => '-',
  698. :options => {
  699. :form => [
  700. {
  701. :display => 'Checksum',
  702. :null => true,
  703. :name => 'checksum',
  704. :tag => 'boolean',
  705. :options => {
  706. true => 'yes',
  707. false => 'no',
  708. },
  709. },
  710. {
  711. :display => 'Min. size of number',
  712. :null => true,
  713. :name => 'min_size',
  714. :tag => 'select',
  715. :options => {
  716. 1 => 1,
  717. 2 => 2,
  718. 3 => 3,
  719. 4 => 4,
  720. 5 => 5,
  721. 6 => 6,
  722. 7 => 7,
  723. 8 => 8,
  724. 9 => 9,
  725. 10 => 10,
  726. 11 => 11,
  727. 12 => 12,
  728. 13 => 13,
  729. 14 => 14,
  730. 15 => 15,
  731. 16 => 16,
  732. 17 => 17,
  733. 18 => 18,
  734. 19 => 19,
  735. 20 => 20,
  736. },
  737. },
  738. ],
  739. },
  740. :state => {
  741. :value => {
  742. :checksum => false,
  743. :min_size => 5,
  744. },
  745. },
  746. :frontend => false
  747. )
  748. Setting.create(
  749. :title => 'Ticket Number Increment Date',
  750. :name => 'ticket_number_date',
  751. :area => 'Ticket::Number',
  752. :description => '-',
  753. :options => {
  754. :form => [
  755. {
  756. :display => 'Checksum',
  757. :null => true,
  758. :name => 'checksum',
  759. :tag => 'boolean',
  760. :options => {
  761. true => 'yes',
  762. false => 'no',
  763. },
  764. },
  765. ],
  766. },
  767. :state => {
  768. :value => {
  769. :checksum => false,
  770. }
  771. },
  772. :frontend => false
  773. )
  774. Setting.create(
  775. :title => 'Enable Ticket creation',
  776. :name => 'customer_ticket_create',
  777. :area => 'CustomerWeb::Base',
  778. :description => 'Defines if a customer can create tickets via the web interface.',
  779. :options => {
  780. :form => [
  781. {
  782. :display => '',
  783. :null => true,
  784. :name => 'customer_ticket_create',
  785. :tag => 'boolean',
  786. :options => {
  787. true => 'yes',
  788. false => 'no',
  789. },
  790. },
  791. ],
  792. },
  793. :state => {
  794. :value => true,
  795. },
  796. :frontend => true
  797. )
  798. Setting.create(
  799. :title => 'Enable Ticket View/Update',
  800. :name => 'customer_ticket_view',
  801. :area => 'CustomerWeb::Base',
  802. :description => 'Defines if a customer view and update his own tickets.',
  803. :options => {
  804. :form => [
  805. {
  806. :display => '',
  807. :null => true,
  808. :name => 'customer_ticket_view',
  809. :tag => 'boolean',
  810. :options => {
  811. true => 'yes',
  812. false => 'no',
  813. },
  814. },
  815. ],
  816. },
  817. :state => {
  818. :value => true,
  819. },
  820. :frontend => true
  821. )
  822. Setting.create(
  823. :title => 'Sender Format',
  824. :name => 'ticket_define_email_from',
  825. :area => 'Email::Base',
  826. :description => 'Defines how the From field from the emails (sent from answers and email tickets) should look like.',
  827. :options => {
  828. :form => [
  829. {
  830. :display => '',
  831. :null => true,
  832. :name => 'ticket_define_email_from',
  833. :tag => 'select',
  834. :options => {
  835. :SystemAddressName => 'System Address Display Name',
  836. :AgentNameSystemAddressName => 'Agent Name + FromSeparator + System Address Display Name',
  837. },
  838. },
  839. ],
  840. },
  841. :state => {
  842. :value => 'SystemAddressName',
  843. },
  844. :frontend => false
  845. )
  846. Setting.create(
  847. :title => 'Sender Format Seperator',
  848. :name => 'ticket_define_email_from_seperator',
  849. :area => 'Email::Base',
  850. :description => 'Defines the separator between the agents real name and the given group email address.',
  851. :options => {
  852. :form => [
  853. {
  854. :display => '',
  855. :null => false,
  856. :name => 'ticket_define_email_from_seperator',
  857. :tag => 'input',
  858. },
  859. ],
  860. },
  861. :state => {
  862. :value => 'via',
  863. },
  864. :frontend => false
  865. )
  866. Setting.create(
  867. :title => 'Max. Email Size',
  868. :name => 'postmaster_max_size',
  869. :area => 'Email::Base',
  870. :description => 'Maximal size in MB of emails.',
  871. :options => {
  872. :form => [
  873. {
  874. :display => '',
  875. :null => true,
  876. :name => 'postmaster_max_size',
  877. :tag => 'select',
  878. :options => {
  879. 1 => 1,
  880. 2 => 2,
  881. 3 => 3,
  882. 4 => 4,
  883. 5 => 5,
  884. 6 => 6,
  885. 7 => 7,
  886. 8 => 8,
  887. 9 => 9,
  888. 10 => 10,
  889. 11 => 11,
  890. 12 => 12,
  891. 13 => 13,
  892. 14 => 14,
  893. 15 => 15,
  894. 16 => 16,
  895. 17 => 17,
  896. 18 => 18,
  897. 19 => 19,
  898. 20 => 20,
  899. },
  900. },
  901. ],
  902. },
  903. :state => {
  904. :value => 10,
  905. },
  906. :frontend => false
  907. )
  908. Setting.create(
  909. :title => 'Additional follow up detection',
  910. :name => 'postmaster_follow_up_search_in',
  911. :area => 'Email::Base',
  912. :description => '"References" - Executes follow up checks on In-Reply-To or References headers for mails that don\'t have a ticket number in the subject. "Body" - Executes follow up mail body checks in mails that don\'t have a ticket number in the subject. "Attachment" - Executes follow up mail attachments checks in mails that don\'t have a ticket number in the subject. "Raw" - Executes follow up plain/raw mail checks in mails that don\'t have a ticket number in the subject.',
  913. :options => {
  914. :form => [
  915. {
  916. :display => '',
  917. :null => true,
  918. :name => 'postmaster_follow_up_search_in',
  919. :tag => 'checkbox',
  920. :options => {
  921. 'references' => 'References',
  922. 'body' => 'Body',
  923. 'attachment' => 'Attachment',
  924. 'raw' => 'Raw',
  925. },
  926. },
  927. ],
  928. },
  929. :state => {
  930. :value => ['subject'],
  931. },
  932. :frontend => false
  933. )
  934. Setting.create(
  935. :title => 'Notification Sender',
  936. :name => 'notification_sender',
  937. :area => 'Email::Base',
  938. :description => 'Defines the sender of email notifications.',
  939. :options => {
  940. :form => [
  941. {
  942. :display => '',
  943. :null => false,
  944. :name => 'notification_sender',
  945. :tag => 'input',
  946. },
  947. ],
  948. },
  949. :state => {
  950. :value => 'Notification Master <noreply@#{config.fqdn}>',
  951. },
  952. :frontend => false
  953. )
  954. Setting.create(
  955. :title => 'Block Notifications',
  956. :name => 'send_no_auto_response_reg_exp',
  957. :area => 'Email::Base',
  958. :description => 'If this regex matches, no notification will be send by the sender.',
  959. :options => {
  960. :form => [
  961. {
  962. :display => '',
  963. :null => false,
  964. :name => 'send_no_auto_response_reg_exp',
  965. :tag => 'input',
  966. },
  967. ],
  968. },
  969. :state => {
  970. :value => '(MAILER-DAEMON|postmaster|abuse)@.+?\..+?',
  971. },
  972. :frontend => false
  973. )
  974. Setting.create(
  975. :title => 'Enable Chat',
  976. :name => 'chat',
  977. :area => 'Chat::Base',
  978. :description => 'Enable/Disable online chat.',
  979. :options => {
  980. :form => [
  981. {
  982. :display => '',
  983. :null => true,
  984. :name => 'chat',
  985. :tag => 'boolean',
  986. :options => {
  987. true => 'yes',
  988. false => 'no',
  989. },
  990. },
  991. ],
  992. },
  993. :state => {
  994. :value => false,
  995. },
  996. :frontend => true
  997. )
  998. Setting.create(
  999. :title => 'Import Mode',
  1000. :name => 'import_mode',
  1001. :area => 'System::Import',
  1002. :description => 'Set system in import mode (disable some triggers).',
  1003. :options => {
  1004. :form => [
  1005. {
  1006. :display => '',
  1007. :null => true,
  1008. :name => 'import_mode',
  1009. :tag => 'boolean',
  1010. :options => {
  1011. true => 'yes',
  1012. false => 'no',
  1013. },
  1014. },
  1015. ],
  1016. },
  1017. :state => {
  1018. :value => false,
  1019. },
  1020. :frontend => true
  1021. )
  1022. email_address = EmailAddress.create(
  1023. :id => 1,
  1024. :realname => 'Zammad',
  1025. :email => 'zammad@localhost',
  1026. :updated_by_id => 1,
  1027. :created_by_id => 1
  1028. )
  1029. signature = Signature.create(
  1030. :name => 'default',
  1031. :body => '
  1032. #{user.firstname} #{user.lastname}
  1033. --
  1034. Super Support - Waterford Business Park
  1035. 5201 Blue Lagoon Drive - 8th Floor & 9th Floor - Miami, 33126 USA
  1036. Email: hot@example.com - Web: http://www.example.com/
  1037. --',
  1038. :updated_by_id => 1,
  1039. :created_by_id => 1
  1040. )
  1041. Role.create(
  1042. :id => 1,
  1043. :name => 'Admin',
  1044. :note => 'To configure your system.',
  1045. :updated_by_id => 1,
  1046. :created_by_id => 1
  1047. )
  1048. Role.create(
  1049. :id => 2,
  1050. :name => 'Agent',
  1051. :note => 'To work on Tickets.',
  1052. :updated_by_id => 1,
  1053. :created_by_id => 1
  1054. )
  1055. Role.create(
  1056. :id => 3,
  1057. :name => 'Customer',
  1058. :note => 'People who create Tickets ask for help.',
  1059. :updated_by_id => 1,
  1060. :created_by_id => 1
  1061. )
  1062. Group.create(
  1063. :id => 1,
  1064. :name => 'Users',
  1065. :email_address_id => email_address.id,
  1066. :signature_id => signature.id,
  1067. :note => 'Standard Group/Pool for Tickets.',
  1068. :updated_by_id => 1,
  1069. :created_by_id => 1
  1070. )
  1071. Group.create(
  1072. :id => 2,
  1073. :name => 'Twitter',
  1074. :note => 'All Tweets.',
  1075. :updated_by_id => 1,
  1076. :created_by_id => 1
  1077. )
  1078. roles = Role.where( :name => 'Customer' )
  1079. organizations = Organization.find( :all )
  1080. groups = Group.find( :all )
  1081. user = User.create(
  1082. :login => '-',
  1083. :firstname => '-',
  1084. :lastname => '',
  1085. :email => '',
  1086. :password => 'root',
  1087. :active => false,
  1088. :roles => roles,
  1089. :groups => groups,
  1090. :organizations => organizations,
  1091. :updated_by_id => 1,
  1092. :created_by_id => 1
  1093. )
  1094. user_community = User.create(
  1095. :login => 'nicole.braun@zammad.org',
  1096. :firstname => 'Nicole',
  1097. :lastname => 'Braun',
  1098. :email => 'nicole.braun@zammad.org',
  1099. :password => '',
  1100. :active => true,
  1101. :roles => roles,
  1102. # :groups => groups,
  1103. :organizations => organizations,
  1104. :updated_by_id => 1,
  1105. :created_by_id => 1
  1106. )
  1107. Link::Type.create( :name => 'normal' )
  1108. Link::Object.create( :name => 'Ticket' )
  1109. Link::Object.create( :name => 'Announcement' )
  1110. Link::Object.create( :name => 'Question/Answer' )
  1111. Link::Object.create( :name => 'Idea' )
  1112. Link::Object.create( :name => 'Bug' )
  1113. Ticket::StateType.create( :name => 'new', :updated_by_id => 1, :created_by_id => 1 )
  1114. Ticket::StateType.create( :name => 'open', :updated_by_id => 1, :created_by_id => 1 )
  1115. Ticket::StateType.create( :name => 'pending reminder', :updated_by_id => 1, :created_by_id => 1 )
  1116. Ticket::StateType.create( :name => 'pending action', :updated_by_id => 1, :created_by_id => 1 )
  1117. Ticket::StateType.create( :name => 'closed', :updated_by_id => 1, :created_by_id => 1 )
  1118. Ticket::StateType.create( :name => 'merged', :updated_by_id => 1, :created_by_id => 1 )
  1119. Ticket::StateType.create( :name => 'removed', :updated_by_id => 1, :created_by_id => 1 )
  1120. Ticket::State.create( :name => 'new', :state_type_id => Ticket::StateType.where(:name => 'new').first.id, :updated_by_id => 1, :created_by_id => 1 )
  1121. Ticket::State.create( :name => 'open', :state_type_id => Ticket::StateType.where(:name => 'open').first.id, :updated_by_id => 1, :created_by_id => 1 )
  1122. Ticket::State.create( :name => 'pending', :state_type_id => Ticket::StateType.where(:name => 'pending reminder').first.id, :updated_by_id => 1, :created_by_id => 1 )
  1123. Ticket::State.create( :name => 'closed', :state_type_id => Ticket::StateType.where(:name => 'closed').first.id, :updated_by_id => 1, :created_by_id => 1 )
  1124. Ticket::State.create( :name => 'merged', :state_type_id => Ticket::StateType.where(:name => 'merged').first.id, :updated_by_id => 1, :created_by_id => 1 )
  1125. Ticket::State.create( :name => 'removed', :state_type_id => Ticket::StateType.where(:name => 'removed').first.id, :updated_by_id => 1, :created_by_id => 1 )
  1126. Ticket::Priority.create( :name => '1 low', :updated_by_id => 1, :created_by_id => 1 )
  1127. Ticket::Priority.create( :name => '2 normal', :updated_by_id => 1, :created_by_id => 1 )
  1128. Ticket::Priority.create( :name => '3 high', :updated_by_id => 1, :created_by_id => 1 )
  1129. Ticket::Article::Type.create( :name => 'email', :communication => true, :updated_by_id => 1, :created_by_id => 1 )
  1130. Ticket::Article::Type.create( :name => 'sms', :communication => true, :updated_by_id => 1, :created_by_id => 1 )
  1131. Ticket::Article::Type.create( :name => 'chat', :communication => true, :updated_by_id => 1, :created_by_id => 1 )
  1132. Ticket::Article::Type.create( :name => 'fax', :communication => true, :updated_by_id => 1, :created_by_id => 1 )
  1133. Ticket::Article::Type.create( :name => 'phone', :communication => true, :updated_by_id => 1, :created_by_id => 1 )
  1134. Ticket::Article::Type.create( :name => 'twitter status', :communication => true, :updated_by_id => 1, :created_by_id => 1 )
  1135. Ticket::Article::Type.create( :name => 'twitter direct-message', :communication => true, :updated_by_id => 1, :created_by_id => 1 )
  1136. Ticket::Article::Type.create( :name => 'facebook', :communication => true, :updated_by_id => 1, :created_by_id => 1 )
  1137. Ticket::Article::Type.create( :name => 'note', :communication => false, :updated_by_id => 1, :created_by_id => 1 )
  1138. Ticket::Article::Type.create( :name => 'web', :communication => true, :updated_by_id => 1, :created_by_id => 1 )
  1139. Ticket::Article::Sender.create( :name => 'Agent', :updated_by_id => 1, :created_by_id => 1 )
  1140. Ticket::Article::Sender.create( :name => 'Customer', :updated_by_id => 1, :created_by_id => 1 )
  1141. Ticket::Article::Sender.create( :name => 'System', :updated_by_id => 1, :created_by_id => 1 )
  1142. ticket = Ticket.create(
  1143. :group_id => Group.where( :name => 'Users' ).first.id,
  1144. :customer_id => User.where( :login => 'nicole.braun@zammad.org' ).first.id,
  1145. :owner_id => User.where( :login => '-' ).first.id,
  1146. :title => 'Welcome to Zammad!',
  1147. :ticket_state_id => Ticket::State.where( :name => 'new' ).first.id,
  1148. :ticket_priority_id => Ticket::Priority.where( :name => '2 normal' ).first.id,
  1149. :updated_by_id => User.where( :login => 'nicole.braun@zammad.org' ).first.id,
  1150. :created_by_id => User.where( :login => 'nicole.braun@zammad.org' ).first.id
  1151. )
  1152. Ticket::Article.create(
  1153. :ticket_id => ticket.id,
  1154. :ticket_article_type_id => Ticket::Article::Type.where(:name => 'phone' ).first.id,
  1155. :ticket_article_sender_id => Ticket::Article::Sender.where(:name => 'Customer' ).first.id,
  1156. :from => 'Zammad Feedback <feedback@zammad.org>',
  1157. :body => 'Welcome!
  1158. Thank you for installing Zammad.
  1159. You will find updates and patches at http://zammad.org/. Online
  1160. documentation is available at http://guides.zammad.org/. You can also
  1161. use our forums at http://forums.zammad.org/
  1162. Regards,
  1163. The Zammad.org Project
  1164. ',
  1165. :internal => false,
  1166. :updated_by_id => User.where( :login => 'nicole.braun@zammad.org' ).first.id,
  1167. :created_by_id => User.where( :login => 'nicole.braun@zammad.org' ).first.id
  1168. )
  1169. overview_role = Role.where( :name => 'Agent' ).first
  1170. Overview.create(
  1171. :name => 'my_assigned',
  1172. :role_id => overview_role.id,
  1173. :condition => {
  1174. :ticket_state_id => [ 1,2,3 ],
  1175. :owner_id => 'current_user.id',
  1176. },
  1177. :order => {
  1178. :by => 'created_at',
  1179. :direction => 'ASC',
  1180. },
  1181. :meta => {
  1182. :url => 'my_assigned',
  1183. :name => 'My assigned Tickets',
  1184. :prio => 1000,
  1185. },
  1186. :view => {
  1187. :d => {
  1188. :overview => [
  1189. 'title', 'customer', 'ticket_state', 'group', 'created_at'
  1190. ],
  1191. :per_page => 5,
  1192. },
  1193. :s => {
  1194. :overview => [
  1195. 'number', 'title', 'customer', 'ticket_state', 'ticket_priority', 'group', 'created_at'
  1196. ],
  1197. :per_page => 30,
  1198. },
  1199. :m => {
  1200. :overview => [
  1201. 'number', 'title', 'customer', 'ticket_state', 'ticket_priority', 'group', 'created_at'
  1202. ],
  1203. :per_page => 20,
  1204. },
  1205. :view_mode_default => 's',
  1206. },
  1207. :updated_by_id => 1,
  1208. :created_by_id => 1
  1209. )
  1210. Overview.create(
  1211. :name => 'all_unassigned',
  1212. :role_id => overview_role.id,
  1213. :condition => {
  1214. :ticket_state_id => [1,2,3],
  1215. :owner_id => 1,
  1216. },
  1217. :order => {
  1218. :by => 'created_at',
  1219. :direction => 'ASC',
  1220. },
  1221. :meta => {
  1222. :url => 'all_unassigned',
  1223. :name => 'Unassigned & Open Tickets',
  1224. :prio => 1001,
  1225. },
  1226. :view => {
  1227. :d => {
  1228. :overview => [
  1229. 'title', 'customer', 'ticket_state', 'group', 'created_at'
  1230. ],
  1231. :per_page => 5,
  1232. },
  1233. :s => {
  1234. :overview => [
  1235. 'number', 'title', 'customer', 'ticket_state', 'ticket_priority', 'group', 'created_at'
  1236. ],
  1237. :per_page => 30,
  1238. },
  1239. :m => {
  1240. :overview => [
  1241. 'number', 'title', 'customer', 'ticket_state', 'ticket_priority', 'group', 'created_at'
  1242. ],
  1243. :per_page => 20,
  1244. },
  1245. :view_mode_default => 's',
  1246. },
  1247. :updated_by_id => 1,
  1248. :created_by_id => 1
  1249. )
  1250. Overview.create(
  1251. :name => 'all_open',
  1252. :role_id => overview_role.id,
  1253. :condition => {
  1254. :ticket_state_id => [1,2,3],
  1255. },
  1256. :order => {
  1257. :by => 'created_at',
  1258. :direction => 'ASC',
  1259. },
  1260. :meta => {
  1261. :url => 'all_open',
  1262. :name => 'All Open Tickets',
  1263. :prio => 1002,
  1264. },
  1265. :view => {
  1266. :d => {
  1267. :overview => [
  1268. 'title', 'customer', 'ticket_state', 'group', 'created_at'
  1269. ],
  1270. :per_page => 5,
  1271. },
  1272. :s => {
  1273. :overview => [
  1274. 'number', 'title', 'customer', 'ticket_state', 'ticket_priority', 'group', 'created_at'
  1275. ],
  1276. :per_page => 30,
  1277. },
  1278. :m => {
  1279. :overview => [
  1280. 'number', 'title', 'customer', 'ticket_state', 'ticket_priority', 'group', 'created_at'
  1281. ],
  1282. :per_page => 20,
  1283. },
  1284. :view_mode_default => 's',
  1285. },
  1286. :updated_by_id => 1,
  1287. :created_by_id => 1
  1288. )
  1289. Overview.create(
  1290. :name => 'all_escalated',
  1291. :role_id => overview_role.id,
  1292. :condition => {
  1293. :ticket_state_id => [1,2,3],
  1294. },
  1295. :order => {
  1296. :by => 'created_at',
  1297. :direction => 'ASC',
  1298. },
  1299. :meta => {
  1300. :url => 'all_escalated',
  1301. :name => 'Escalated Tickets',
  1302. :prio => 1010,
  1303. },
  1304. :view => {
  1305. :d => {
  1306. :overview => [
  1307. 'title', 'customer', 'ticket_state', 'group', 'owner', 'created_at'
  1308. ],
  1309. :per_page => 5,
  1310. },
  1311. :s => {
  1312. :overview => [
  1313. 'number', 'title', 'customer', 'ticket_state', 'ticket_priority', 'group', 'owner', 'created_at'
  1314. ],
  1315. :per_page => 30,
  1316. },
  1317. :m => {
  1318. :overview => [
  1319. 'number', 'title', 'customer', 'ticket_state', 'ticket_priority', 'group', 'owner', 'created_at'
  1320. ],
  1321. :per_page => 20,
  1322. },
  1323. :view_mode_default => 's',
  1324. },
  1325. :updated_by_id => 1,
  1326. :created_by_id => 1
  1327. )
  1328. Overview.create(
  1329. :name => 'my_pending_reached',
  1330. :role_id => overview_role.id,
  1331. :condition => {
  1332. :ticket_state_id => [3],
  1333. :owner_id => 'current_user.id',
  1334. },
  1335. :order => {
  1336. :by => 'created_at',
  1337. :direction => 'ASC',
  1338. },
  1339. :meta => {
  1340. :url => 'my_pending_reached',
  1341. :name => 'My pending reached Tickets',
  1342. :prio => 1020,
  1343. },
  1344. :view => {
  1345. :d => {
  1346. :overview => [
  1347. 'title', 'customer', 'ticket_state', 'group', 'created_at'
  1348. ],
  1349. :per_page => 5,
  1350. },
  1351. :s => {
  1352. :overview => [
  1353. 'number', 'title', 'customer', 'ticket_state', 'ticket_priority', 'group', 'created_at'
  1354. ],
  1355. :per_page => 30,
  1356. },
  1357. :m => {
  1358. :overview => [
  1359. 'number', 'title', 'customer', 'ticket_state', 'ticket_priority', 'group', 'created_at'
  1360. ],
  1361. :per_page => 20,
  1362. },
  1363. :view_mode_default => 's',
  1364. },
  1365. :updated_by_id => 1,
  1366. :created_by_id => 1
  1367. )
  1368. Overview.create(
  1369. :name => 'all',
  1370. :role_id => overview_role.id,
  1371. :condition => {
  1372. # :ticket_state_id => [3],
  1373. # :owner_id => current_user.id,
  1374. },
  1375. :order => {
  1376. :by => 'created_at',
  1377. :direction => 'ASC',
  1378. },
  1379. :meta => {
  1380. :url => 'all',
  1381. :name => 'All Tickets',
  1382. :prio => 9003,
  1383. },
  1384. :view => {
  1385. :s => {
  1386. :overview => [
  1387. 'title', 'customer', 'ticket_state', 'group', 'created_at'
  1388. ],
  1389. :per_page => 5,
  1390. },
  1391. :s => {
  1392. :overview => [
  1393. 'number', 'title', 'customer', 'ticket_state', 'ticket_priority', 'group', 'created_at'
  1394. ],
  1395. :per_page => 30,
  1396. },
  1397. :m => {
  1398. :overview => [
  1399. 'number', 'title', 'customer', 'ticket_state', 'ticket_priority', 'group', 'created_at'
  1400. ],
  1401. :per_page => 20,
  1402. },
  1403. :view_mode_default => 's',
  1404. },
  1405. :updated_by_id => 1,
  1406. :created_by_id => 1
  1407. )
  1408. overview_role = Role.where( :name => 'Customer' ).first
  1409. Overview.create(
  1410. :name => 'my_tickets',
  1411. :role_id => overview_role.id,
  1412. :condition => {
  1413. :ticket_state_id => [ 1,2,3,4,6 ],
  1414. :customer_id => 'current_user.id',
  1415. },
  1416. :order => {
  1417. :by => 'created_at',
  1418. :direction => 'DESC',
  1419. },
  1420. :meta => {
  1421. :url => 'my_tickets',
  1422. :name => 'My Tickets',
  1423. :prio => 1000,
  1424. },
  1425. :view => {
  1426. :d => {
  1427. :overview => [
  1428. 'title', 'customer', 'ticket_state', 'created_at'
  1429. ],
  1430. :per_page => 5,
  1431. },
  1432. :s => {
  1433. :overview => [
  1434. 'number', 'title', 'ticket_state', 'ticket_priority', 'created_at'
  1435. ],
  1436. :per_page => 30,
  1437. },
  1438. :m => {
  1439. :overview => [
  1440. 'number', 'title', 'ticket_state', 'ticket_priority', 'created_at'
  1441. ],
  1442. :per_page => 20,
  1443. },
  1444. :view_mode_default => 's',
  1445. },
  1446. :updated_by_id => 1,
  1447. :created_by_id => 1
  1448. )
  1449. Overview.create(
  1450. :name => 'my_organization_tickets',
  1451. :role_id => overview_role.id,
  1452. :organization_shared => true,
  1453. :condition => {
  1454. :ticket_state_id => [ 1,2,3,4,6 ],
  1455. :organization_id => 'current_user.organization_id',
  1456. },
  1457. :order => {
  1458. :by => 'created_at',
  1459. :direction => 'DESC',
  1460. },
  1461. :meta => {
  1462. :url => 'my_organization_tickets',
  1463. :name => 'My Organization Tickets',
  1464. :prio => 1100,
  1465. },
  1466. :view => {
  1467. :d => {
  1468. :overview => [
  1469. 'title', 'customer', 'ticket_state', 'created_at'
  1470. ],
  1471. :per_page => 5,
  1472. },
  1473. :s => {
  1474. :overview => [
  1475. 'number', 'title', 'customer', 'ticket_state', 'ticket_priority', 'created_at'
  1476. ],
  1477. :per_page => 30,
  1478. },
  1479. :m => {
  1480. :overview => [
  1481. 'number', 'title', 'ticket_state', 'ticket_priority', 'created_at'
  1482. ],
  1483. :per_page => 20,
  1484. },
  1485. :view_mode_default => 's',
  1486. },
  1487. :updated_by_id => 1,
  1488. :created_by_id => 1
  1489. )
  1490. Channel.create(
  1491. :adapter => 'SMTP',
  1492. :area => 'Email::Outbound',
  1493. :options => {
  1494. :host => 'host.example.com',
  1495. :user => '',
  1496. :password => '',
  1497. :ssl => true,
  1498. },
  1499. :group_id => 1,
  1500. :active => false,
  1501. :updated_by_id => 1,
  1502. :created_by_id => 1,
  1503. )
  1504. Channel.create(
  1505. :adapter => 'Sendmail',
  1506. :area => 'Email::Outbound',
  1507. :options => {},
  1508. :active => true,
  1509. :updated_by_id => 1,
  1510. :created_by_id => 1,
  1511. )
  1512. network = Network.create(
  1513. :name => 'base',
  1514. :updated_by_id => 1,
  1515. :created_by_id => 1,
  1516. )
  1517. Network::Category::Type.create(
  1518. :name => 'Announcement',
  1519. :updated_by_id => 1,
  1520. :created_by_id => 1,
  1521. )
  1522. Network::Category::Type.create(
  1523. :name => 'Idea',
  1524. :updated_by_id => 1,
  1525. :created_by_id => 1,
  1526. )
  1527. Network::Category::Type.create(
  1528. :name => 'Question',
  1529. :updated_by_id => 1,
  1530. :created_by_id => 1,
  1531. )
  1532. Network::Category::Type.create(
  1533. :name => 'Bug Report',
  1534. :updated_by_id => 1,
  1535. :created_by_id => 1,
  1536. )
  1537. Network::Privacy.create(
  1538. :name => 'logged in',
  1539. :key => 'loggedIn',
  1540. :updated_by_id => 1,
  1541. :created_by_id => 1,
  1542. )
  1543. Network::Privacy.create(
  1544. :name => 'logged in and moderator',
  1545. :key => 'loggedInModerator',
  1546. :updated_by_id => 1,
  1547. :created_by_id => 1,
  1548. )
  1549. Network::Category.create(
  1550. :name => 'Announcements',
  1551. :network_id => network.id,
  1552. :allow_comments => true,
  1553. :network_category_type_id => Network::Category::Type.where(:name => 'Announcement').first.id,
  1554. :network_privacy_id => Network::Privacy.where(:name => 'logged in and moderator').first.id,
  1555. :allow_comments => true,
  1556. :updated_by_id => 1,
  1557. :created_by_id => 1,
  1558. )
  1559. Network::Category.create(
  1560. :name => 'Questions',
  1561. :network_id => network.id,
  1562. :allow_comments => true,
  1563. :network_category_type_id => Network::Category::Type.where(:name => 'Question').first.id,
  1564. :network_privacy_id => Network::Privacy.where(:name => 'logged in').first.id,
  1565. # :network_categories_moderator_user_ids => User.where(:login => '-').first.id,
  1566. :updated_by_id => 1,
  1567. :created_by_id => 1,
  1568. )
  1569. Network::Category.create(
  1570. :name => 'Ideas',
  1571. :network_id => network.id,
  1572. :allow_comments => true,
  1573. :network_category_type_id => Network::Category::Type.where(:name => 'Idea').first.id,
  1574. :network_privacy_id => Network::Privacy.where(:name => 'logged in').first.id,
  1575. :allow_comments => true,
  1576. :updated_by_id => 1,
  1577. :created_by_id => 1,
  1578. )
  1579. Network::Category.create(
  1580. :name => 'Bug Reports',
  1581. :network_id => network.id,
  1582. :allow_comments => true,
  1583. :network_category_type_id => Network::Category::Type.where(:name => 'Bug Report').first.id,
  1584. :network_privacy_id => Network::Privacy.where(:name => 'logged in').first.id,
  1585. :allow_comments => true,
  1586. :updated_by_id => 1,
  1587. :created_by_id => 1,
  1588. )
  1589. item = Network::Item.create(
  1590. :title => 'Example Announcement',
  1591. :body => 'Some announcement....',
  1592. :network_category_id => Network::Category.where(:name => 'Announcements').first.id,
  1593. :updated_by_id => 1,
  1594. :created_by_id => 1,
  1595. )
  1596. Network::Item::Comment.create(
  1597. :network_item_id => item.id,
  1598. :body => 'Some comment....',
  1599. :updated_by_id => 1,
  1600. :created_by_id => 1,
  1601. )
  1602. item = Network::Item.create(
  1603. :title => 'Example Question?',
  1604. :body => 'Some questions....',
  1605. :network_category_id => Network::Category.where(:name => 'Questions').first.id,
  1606. :updated_by_id => 1,
  1607. :created_by_id => 1,
  1608. )
  1609. Network::Item::Comment.create(
  1610. :network_item_id => item.id,
  1611. :body => 'Some comment....',
  1612. :updated_by_id => 1,
  1613. :created_by_id => 1,
  1614. )
  1615. item = Network::Item.create(
  1616. :title => 'Example Idea',
  1617. :body => 'Some idea....',
  1618. :network_category_id => Network::Category.where(:name => 'Ideas').first.id,
  1619. :updated_by_id => 1,
  1620. :created_by_id => 1,
  1621. )
  1622. Network::Item::Comment.create(
  1623. :network_item_id => item.id,
  1624. :body => 'Some comment....',
  1625. :updated_by_id => 1,
  1626. :created_by_id => 1,
  1627. )
  1628. item = Network::Item.create(
  1629. :title => 'Example Bug Report',
  1630. :body => 'Some bug....',
  1631. :network_category_id => Network::Category.where(:name => 'Bug Reports').first.id,
  1632. :updated_by_id => 1,
  1633. :created_by_id => 1,
  1634. )
  1635. Network::Item::Comment.create(
  1636. :network_item_id => item.id,
  1637. :body => 'Some comment....',
  1638. :updated_by_id => 1,
  1639. :created_by_id => 1,
  1640. )
  1641. Translation.create_if_not_exists( :locale => 'de', :source => "New", :target => "Neu", :updated_by_id => 1, :created_by_id => 1 )
  1642. Translation.create_if_not_exists( :locale => 'de', :source => "Create", :target => "Erstellen", :updated_by_id => 1, :created_by_id => 1 )
  1643. Translation.create_if_not_exists( :locale => 'de', :source => "Cancel", :target => "Abbrechen", :updated_by_id => 1, :created_by_id => 1 )
  1644. Translation.create_if_not_exists( :locale => 'de', :source => "Submit", :target => "Ãœbermitteln", :updated_by_id => 1, :created_by_id => 1 )
  1645. Translation.create_if_not_exists( :locale => 'de', :source => "Sign out", :target => "Abmelden", :updated_by_id => 1, :created_by_id => 1 )
  1646. Translation.create_if_not_exists( :locale => 'de', :source => "Profile", :target => "Profil", :updated_by_id => 1, :created_by_id => 1 )
  1647. Translation.create_if_not_exists( :locale => 'de', :source => "Settings", :target => "Einstellungen", :updated_by_id => 1, :created_by_id => 1 )
  1648. Translation.create_if_not_exists( :locale => 'de', :source => "Overviews", :target => "Ãœbersichten", :updated_by_id => 1, :created_by_id => 1 )
  1649. Translation.create_if_not_exists( :locale => 'de', :source => "Manage", :target => "Verwalten", :updated_by_id => 1, :created_by_id => 1 )
  1650. Translation.create_if_not_exists( :locale => 'de', :source => "Users", :target => "Benutzer", :updated_by_id => 1, :created_by_id => 1 )
  1651. Translation.create_if_not_exists( :locale => 'de', :source => "Groups", :target => "Gruppen", :updated_by_id => 1, :created_by_id => 1 )
  1652. Translation.create_if_not_exists( :locale => 'de', :source => "Group", :target => "Gruppe", :updated_by_id => 1, :created_by_id => 1 )
  1653. Translation.create_if_not_exists( :locale => 'de', :source => "Organizations", :target => "Organisationen", :updated_by_id => 1, :created_by_id => 1 )
  1654. Translation.create_if_not_exists( :locale => 'de', :source => "Organization", :target => "Organisation", :updated_by_id => 1, :created_by_id => 1 )
  1655. Translation.create_if_not_exists( :locale => 'de', :source => "Recent Viewed", :target => "Zuletzt angesehen", :updated_by_id => 1, :created_by_id => 1 )
  1656. Translation.create_if_not_exists( :locale => 'de', :source => "Security", :target => "Sicherheit", :updated_by_id => 1, :created_by_id => 1 )
  1657. Translation.create_if_not_exists( :locale => 'de', :source => "From", :target => "Von", :updated_by_id => 1, :created_by_id => 1 )
  1658. Translation.create_if_not_exists( :locale => 'de', :source => "Title", :target => "Titel", :updated_by_id => 1, :created_by_id => 1 )
  1659. Translation.create_if_not_exists( :locale => 'de', :source => "Customer", :target => "Kunde", :updated_by_id => 1, :created_by_id => 1 )
  1660. Translation.create_if_not_exists( :locale => 'de', :source => "State", :target => "Status", :updated_by_id => 1, :created_by_id => 1 )
  1661. Translation.create_if_not_exists( :locale => 'de', :source => "Created", :target => "Erstellt", :updated_by_id => 1, :created_by_id => 1 )
  1662. Translation.create_if_not_exists( :locale => 'de', :source => "Attributes", :target => "Attribute", :updated_by_id => 1, :created_by_id => 1 )
  1663. Translation.create_if_not_exists( :locale => 'de', :source => "Direction", :target => "Richtung", :updated_by_id => 1, :created_by_id => 1 )
  1664. Translation.create_if_not_exists( :locale => 'de', :source => "Owner", :target => "Besitzer", :updated_by_id => 1, :created_by_id => 1 )
  1665. Translation.create_if_not_exists( :locale => 'de', :source => "Subject", :target => "Betreff", :updated_by_id => 1, :created_by_id => 1 )
  1666. Translation.create_if_not_exists( :locale => 'de', :source => "Priority", :target => "Priorität", :updated_by_id => 1, :created_by_id => 1 )
  1667. Translation.create_if_not_exists( :locale => 'de', :source => "Select the customer of the Ticket or create one.", :target => "Wähle den KundenfÃr das Ticket oder erstell einen neuen.", :updated_by_id => 1, :created_by_id => 1 )
  1668. Translation.create_if_not_exists( :locale => 'de', :source => "New Ticket", :target => "Neues Ticket", :updated_by_id => 1, :created_by_id => 1 )
  1669. Translation.create_if_not_exists( :locale => 'de', :source => "Firstname", :target => "Vorname", :updated_by_id => 1, :created_by_id => 1 )
  1670. Translation.create_if_not_exists( :locale => 'de', :source => "Lastname", :target => "Nachname", :updated_by_id => 1, :created_by_id => 1 )
  1671. Translation.create_if_not_exists( :locale => 'de', :source => "Phone", :target => "Telefon", :updated_by_id => 1, :created_by_id => 1 )
  1672. Translation.create_if_not_exists( :locale => 'de', :source => "Street", :target => "Straße", :updated_by_id => 1, :created_by_id => 1 )
  1673. Translation.create_if_not_exists( :locale => 'de', :source => "Zip", :target => "PLZ", :updated_by_id => 1, :created_by_id => 1 )
  1674. Translation.create_if_not_exists( :locale => 'de', :source => "City", :target => "Stadt", :updated_by_id => 1, :created_by_id => 1 )
  1675. Translation.create_if_not_exists( :locale => 'de', :source => "Note", :target => "Notiz", :updated_by_id => 1, :created_by_id => 1 )
  1676. Translation.create_if_not_exists( :locale => 'de', :source => "note", :target => "Notiz", :updated_by_id => 1, :created_by_id => 1 )
  1677. Translation.create_if_not_exists( :locale => 'de', :source => "New User", :target => "Neuer Benutzer", :updated_by_id => 1, :created_by_id => 1 )
  1678. Translation.create_if_not_exists( :locale => 'de', :source => "Merge", :target => "Zusammenfügen", :updated_by_id => 1, :created_by_id => 1 )
  1679. Translation.create_if_not_exists( :locale => 'de', :source => "History", :target => "Historie", :updated_by_id => 1, :created_by_id => 1 )
  1680. Translation.create_if_not_exists( :locale => 'de', :source => "new", :target => "neu", :updated_by_id => 1, :created_by_id => 1 )
  1681. Translation.create_if_not_exists( :locale => 'de', :source => "closed", :target => "geschlossen", :updated_by_id => 1, :created_by_id => 1 )
  1682. Translation.create_if_not_exists( :locale => 'de', :source => "open", :target => "offen", :updated_by_id => 1, :created_by_id => 1 )
  1683. Translation.create_if_not_exists( :locale => 'de', :source => "pending", :target => "warten", :updated_by_id => 1, :created_by_id => 1 )
  1684. Translation.create_if_not_exists( :locale => 'de', :source => "merged", :target => "zusammengefügt", :updated_by_id => 1, :created_by_id => 1 )
  1685. Translation.create_if_not_exists( :locale => 'de', :source => "removed", :target => "zurück gezogen", :updated_by_id => 1, :created_by_id => 1 )
  1686. Translation.create_if_not_exists( :locale => 'de', :source => "Activity Stream", :target => "Aktivitäts-Stream", :updated_by_id => 1, :created_by_id => 1 )
  1687. Translation.create_if_not_exists( :locale => 'de', :source => "updated", :target => "aktuallisierte", :updated_by_id => 1, :created_by_id => 1 )
  1688. Translation.create_if_not_exists( :locale => 'de', :source => "created", :target => "erstellte", :updated_by_id => 1, :created_by_id => 1 )
  1689. Translation.create_if_not_exists( :locale => 'de', :source => "My assigned Tickets", :target => "Meine zugewisenen Tickets", :updated_by_id => 1, :created_by_id => 1 )
  1690. Translation.create_if_not_exists( :locale => 'de', :source => "Unassigned Tickets", :target => "Nicht zugewisene/freie Tickets", :updated_by_id => 1, :created_by_id => 1 )
  1691. Translation.create_if_not_exists( :locale => 'de', :source => "Unassigned & Open Tickets", :target => "Nicht zugewisene & offene Tickets", :updated_by_id => 1, :created_by_id => 1 )
  1692. Translation.create_if_not_exists( :locale => 'de', :source => "All Tickets", :target => "Alle Tickets", :updated_by_id => 1, :created_by_id => 1 )
  1693. Translation.create_if_not_exists( :locale => 'de', :source => "Escalated Tickets", :target => "Eskallierte Tickets", :updated_by_id => 1, :created_by_id => 1 )
  1694. Translation.create_if_not_exists( :locale => 'de', :source => "My pending reached Tickets", :target => "Meine warten erreicht Tickets", :updated_by_id => 1, :created_by_id => 1 )
  1695. Translation.create_if_not_exists( :locale => 'de', :source => "Password", :target => "Passwort", :updated_by_id => 1, :created_by_id => 1 )
  1696. Translation.create_if_not_exists( :locale => 'de', :source => "Password (confirm)", :target => "Passwort (bestätigen)", :updated_by_id => 1, :created_by_id => 1 )
  1697. Translation.create_if_not_exists( :locale => 'de', :source => "Roles", :target => "Rollen", :updated_by_id => 1, :created_by_id => 1 )
  1698. Translation.create_if_not_exists( :locale => 'de', :source => "Active", :target => "Aktiv", :updated_by_id => 1, :created_by_id => 1 )
  1699. Translation.create_if_not_exists( :locale => 'de', :source => "Edit", :target => "Bearbeiten", :updated_by_id => 1, :created_by_id => 1 )
  1700. Translation.create_if_not_exists( :locale => 'de', :source => "Base", :target => "Basis", :updated_by_id => 1, :created_by_id => 1 )
  1701. Translation.create_if_not_exists( :locale => 'de', :source => "Number", :target => "Nummer", :updated_by_id => 1, :created_by_id => 1 )
  1702. Translation.create_if_not_exists( :locale => 'de', :source => "Sender Format", :target => "Absender Format", :updated_by_id => 1, :created_by_id => 1 )
  1703. Translation.create_if_not_exists( :locale => 'de', :source => "Authentication", :target => "Authorisierung", :updated_by_id => 1, :created_by_id => 1 )
  1704. Translation.create_if_not_exists( :locale => 'de', :source => "Product Name", :target => "Produkt Name", :updated_by_id => 1, :created_by_id => 1 )
  1705. Translation.create_if_not_exists( :locale => 'de', :source => "To", :target => "An", :updated_by_id => 1, :created_by_id => 1 )
  1706. Translation.create_if_not_exists( :locale => 'de', :source => "Customer", :target => "Kunde", :updated_by_id => 1, :created_by_id => 1 )
  1707. Translation.create_if_not_exists( :locale => 'de', :source => "Linked Accounts", :target => "Verknüpfte Accounts", :updated_by_id => 1, :created_by_id => 1 )
  1708. Translation.create_if_not_exists( :locale => 'de', :source => "Sign in with", :target => "Anmelden mit", :updated_by_id => 1, :created_by_id => 1 )
  1709. Translation.create_if_not_exists( :locale => 'de', :source => "Username or email", :target => "Benutzer oder Email", :updated_by_id => 1, :created_by_id => 1 )
  1710. Translation.create_if_not_exists( :locale => 'de', :source => "Remember me", :target => "An mich erinnern", :updated_by_id => 1, :created_by_id => 1 )
  1711. Translation.create_if_not_exists( :locale => 'de', :source => "Forgot password?", :target => "Passwort vergessen?", :updated_by_id => 1, :created_by_id => 1 )
  1712. Translation.create_if_not_exists( :locale => 'de', :source => "Sign in using", :target => "Anmelden über", :updated_by_id => 1, :created_by_id => 1 )
  1713. Translation.create_if_not_exists( :locale => 'de', :source => "New to", :target => "Neu bei", :updated_by_id => 1, :created_by_id => 1 )
  1714. Translation.create_if_not_exists( :locale => 'de', :source => "join today!", :target => "werde Teil!", :updated_by_id => 1, :created_by_id => 1 )
  1715. Translation.create_if_not_exists( :locale => 'de', :source => "Sign up", :target => "Registrieren", :updated_by_id => 1, :created_by_id => 1 )
  1716. Translation.create_if_not_exists( :locale => 'de', :source => "Sign in", :target => "Anmelden", :updated_by_id => 1, :created_by_id => 1 )
  1717. Translation.create_if_not_exists( :locale => 'de', :source => "Create my account", :target => "Meinen Account erstellen", :updated_by_id => 1, :created_by_id => 1 )
  1718. Translation.create_if_not_exists( :locale => 'de', :source => "Login successfully! Have a nice day!", :target => "Anmeldung erfolgreich!", :updated_by_id => 1, :created_by_id => 1 )
  1719. Translation.create_if_not_exists( :locale => 'de', :source => "Last contact", :target => "Letzter Kontakt", :updated_by_id => 1, :created_by_id => 1 )
  1720. Translation.create_if_not_exists( :locale => 'de', :source => "Last contact (Agent)", :target => "Letzter Kontakt (Agent)", :updated_by_id => 1, :created_by_id => 1 )
  1721. Translation.create_if_not_exists( :locale => 'de', :source => "Last contact (Customer)", :target => "Letzter Kontakt (Kunde)", :updated_by_id => 1, :created_by_id => 1 )
  1722. Translation.create_if_not_exists( :locale => 'de', :source => "Close time", :target => "Schließzeit", :updated_by_id => 1, :created_by_id => 1 )
  1723. Translation.create_if_not_exists( :locale => 'de', :source => "First response", :target => "Erste Reaktion", :updated_by_id => 1, :created_by_id => 1 )
  1724. Translation.create_if_not_exists( :locale => 'de', :source => "Ticket %s created!", :target => "Ticket %s erstellt!", :updated_by_id => 1, :created_by_id => 1 )
  1725. Translation.create_if_not_exists( :locale => 'de', :source => "day", :target => "Tag", :updated_by_id => 1, :created_by_id => 1 )
  1726. Translation.create_if_not_exists( :locale => 'de', :source => "days", :target => "Tage", :updated_by_id => 1, :created_by_id => 1 )
  1727. Translation.create_if_not_exists( :locale => 'de', :source => "hour", :target => "Stunde", :updated_by_id => 1, :created_by_id => 1 )
  1728. Translation.create_if_not_exists( :locale => 'de', :source => "hours", :target => "Stunden", :updated_by_id => 1, :created_by_id => 1 )
  1729. Translation.create_if_not_exists( :locale => 'de', :source => "minute", :target => "Minute", :updated_by_id => 1, :created_by_id => 1 )
  1730. Translation.create_if_not_exists( :locale => 'de', :source => "minutes", :target => "Minuten", :updated_by_id => 1, :created_by_id => 1 )
  1731. Translation.create_if_not_exists( :locale => 'de', :source => "See more", :target => "mehr anzeigen", :updated_by_id => 1, :created_by_id => 1 )
  1732. Translation.create_if_not_exists( :locale => 'de', :source => "Search", :target => "Suche", :updated_by_id => 1, :created_by_id => 1 )
  1733. Translation.create_if_not_exists( :locale => 'de', :source => "Forgot your password?", :target => "Passwort vergessen?", :updated_by_id => 1, :created_by_id => 1 )
  1734. Translation.create_if_not_exists( :locale => 'de', :source => "Templates", :target => "Vorlagen", :updated_by_id => 1, :created_by_id => 1 )
  1735. Translation.create_if_not_exists( :locale => 'de', :source => "Delete", :target => "Löschen", :updated_by_id => 1, :created_by_id => 1 )
  1736. Translation.create_if_not_exists( :locale => 'de', :source => "Apply", :target => "Ãœbernehmen", :updated_by_id => 1, :created_by_id => 1 )
  1737. Translation.create_if_not_exists( :locale => 'de', :source => "Save as Template", :target => "Als Template speichern", :updated_by_id => 1, :created_by_id => 1 )
  1738. Translation.create_if_not_exists( :locale => 'de', :source => "Save", :target => "Speichern", :updated_by_id => 1, :created_by_id => 1 )
  1739. Translation.create_if_not_exists( :locale => 'de', :source => "Open Tickets", :target => "Offene Ticket", :updated_by_id => 1, :created_by_id => 1 )
  1740. Translation.create_if_not_exists( :locale => 'de', :source => "Closed Tickets", :target => "Geschlossene Ticket", :updated_by_id => 1, :created_by_id => 1 )
  1741. Translation.create_if_not_exists( :locale => 'de', :source => "set to internal", :target => "auf intern setzen", :updated_by_id => 1, :created_by_id => 1 )
  1742. Translation.create_if_not_exists( :locale => 'de', :source => "set to public", :target => "auf öffentlich setzen", :updated_by_id => 1, :created_by_id => 1 )
  1743. Translation.create_if_not_exists( :locale => 'de', :source => "split", :target => "teilen", :updated_by_id => 1, :created_by_id => 1 )
  1744. Translation.create_if_not_exists( :locale => 'de', :source => "Type", :target => "Typ", :updated_by_id => 1, :created_by_id => 1 )
  1745. Translation.create_if_not_exists( :locale => 'de', :source => "raw", :target => "unverarbeitet", :updated_by_id => 1, :created_by_id => 1 )
  1746. Translation.create_if_not_exists( :locale => 'de', :source => "1 low", :target => "1 niedrig", :updated_by_id => 1, :created_by_id => 1 )
  1747. Translation.create_if_not_exists( :locale => 'de', :source => "2 normal", :target => "2 normal", :updated_by_id => 1, :created_by_id => 1 )
  1748. Translation.create_if_not_exists( :locale => 'de', :source => "3 high", :target => "3 hoch", :updated_by_id => 1, :created_by_id => 1 )
  1749. Translation.create_if_not_exists( :locale => 'de', :source => "public", :target => "öffentlich", :updated_by_id => 1, :created_by_id => 1 )
  1750. Translation.create_if_not_exists( :locale => 'de', :source => "internal", :target => "intern", :updated_by_id => 1, :created_by_id => 1 )
  1751. Translation.create_if_not_exists( :locale => 'de', :source => "Attach files", :target => "Dateien anhängen", :updated_by_id => 1, :created_by_id => 1 )
  1752. Translation.create_if_not_exists( :locale => 'de', :source => "Visability", :target => "Sichtbarkeit", :updated_by_id => 1, :created_by_id => 1 )
  1753. Translation.create_if_not_exists( :locale => 'de', :source => "Actions", :target => "Aktionen", :updated_by_id => 1, :created_by_id => 1 )
  1754. Translation.create_if_not_exists( :locale => 'de', :source => "email", :target => "E-Mail", :updated_by_id => 1, :created_by_id => 1 )
  1755. Translation.create_if_not_exists( :locale => 'de', :source => "phone", :target => "Telefon", :updated_by_id => 1, :created_by_id => 1 )
  1756. Translation.create_if_not_exists( :locale => 'de', :source => "fax", :target => "Fax", :updated_by_id => 1, :created_by_id => 1 )
  1757. Translation.create_if_not_exists( :locale => 'de', :source => "chat", :target => "Chat", :updated_by_id => 1, :created_by_id => 1 )
  1758. Translation.create_if_not_exists( :locale => 'de', :source => "sms", :target => "SMS", :updated_by_id => 1, :created_by_id => 1 )
  1759. Translation.create_if_not_exists( :locale => 'de', :source => "twitter status", :target => "Twitter Status Meldung", :updated_by_id => 1, :created_by_id => 1 )
  1760. Translation.create_if_not_exists( :locale => 'de', :source => "twitter direct-message", :target => "Twitter Direkt-Nachricht", :updated_by_id => 1, :created_by_id => 1 )
  1761. Translation.create_if_not_exists( :locale => 'de', :source => "All Open Tickets", :target => "Alle offenen Tickets", :updated_by_id => 1, :created_by_id => 1 )
  1762. Translation.create_if_not_exists( :locale => 'de', :source => "child", :target => "Kind", :updated_by_id => 1, :created_by_id => 1 )
  1763. Translation.create_if_not_exists( :locale => 'de', :source => "parent", :target => "Eltern", :updated_by_id => 1, :created_by_id => 1 )
  1764. Translation.create_if_not_exists( :locale => 'de', :source => "normal", :target => "Normal", :updated_by_id => 1, :created_by_id => 1 )
  1765. Translation.create_if_not_exists( :locale => 'de', :source => "Linked Objects", :target => "Verknüpfte Objekte", :updated_by_id => 1, :created_by_id => 1 )
  1766. Translation.create_if_not_exists( :locale => 'de', :source => "Links", :target => "Verknüpftungen", :updated_by_id => 1, :created_by_id => 1 )
  1767. Translation.create_if_not_exists( :locale => 'de', :source => "Change Customer", :target => "Kunden ändern", :updated_by_id => 1, :created_by_id => 1 )
  1768. Translation.create_if_not_exists( :locale => 'de', :source => "My Tickets", :target => "Meine Tickets", :updated_by_id => 1, :created_by_id => 1 )
  1769. Translation.create_if_not_exists( :locale => 'de', :source => "My Organization Tickets", :target => "Meine Organisations Tickets", :updated_by_id => 1, :created_by_id => 1 )
  1770. Translation.create_if_not_exists( :locale => 'de', :source => "My Organization", :target => "Meine Organisation", :updated_by_id => 1, :created_by_id => 1 )
  1771. Translation.create_if_not_exists( :locale => 'de', :source => "Assignment Timout", :target => "Zeitliche Zuweisungsüberschritung", :updated_by_id => 1, :created_by_id => 1 )
  1772. Translation.create_if_not_exists( :locale => 'de', :source => "We've sent password reset instructions to your email address.", :target => "Wir haben Ihnen die Anleitung zum zurücksetzen Ihres Passworts an Ihre E-Mail-Adresse gesendet.", :updated_by_id => 1, :created_by_id => 1 )
  1773. Translation.create_if_not_exists( :locale => 'de', :source => "Enter your username or email address", :target => "Bitte geben Sie Ihren Benutzernamen oder E-Mail-Adresse ein", :updated_by_id => 1, :created_by_id => 1 )
  1774. Translation.create_if_not_exists( :locale => 'de', :source => "Choose your new password.", :target => "Wählen Sie Ihr neues Passwort.", :updated_by_id => 1, :created_by_id => 1 )
  1775. Translation.create_if_not_exists( :locale => 'de', :source => "Woo hoo! Your password has been changed!", :target => "Vielen Dank, Ihr Passwort wurde geändert!", :updated_by_id => 1, :created_by_id => 1 )
  1776. Translation.create_if_not_exists( :locale => 'de', :source => "Please try to login!", :target => "Bitte melden Sie sich nun an!", :updated_by_id => 1, :created_by_id => 1 )
  1777. Translation.create_if_not_exists( :locale => 'de', :source => "Username or email address invalid, please try again.", :target => "Benutzername oder E-Mail-Addresse ungültig, bitte erneut versuchen.", :updated_by_id => 1, :created_by_id => 1 )
  1778. Translation.create_if_not_exists( :locale => 'de', :source => "If you don\'t receive instructions within a minute or two, check your email\'s spam and junk filters, or try resending your request.", :target => "Wir haben die Anforderung per E-Mail an Sie versendet, bitte überprüfen Sie Ihr Email-Postfach (auch die Junk E-Mails) ggf. starten Sie eine Anforderung erneut.", :updated_by_id => 1, :created_by_id => 1 )
  1779. Translation.create_if_not_exists( :locale => 'de', :source => "again", :target => "erneut", :updated_by_id => 1, :created_by_id => 1 )
  1780. Translation.create_if_not_exists( :locale => 'de', :source => "none", :target => "keine", :updated_by_id => 1, :created_by_id => 1 )
  1781. Translation.create_if_not_exists( :locale => 'de', :source => "Welcome!", :target => "Willkommen!", :updated_by_id => 1, :created_by_id => 1 )
  1782. Translation.create_if_not_exists( :locale => 'de', :source => "Please click the button below to create your first one.", :target => "Klicken Sie die Schaltfläche unten um das erste zu erstellen.", :updated_by_id => 1, :created_by_id => 1 )
  1783. Translation.create_if_not_exists( :locale => 'de', :source => "Create your first Ticket", :target => "Erstellen Sie Ihr erstes Ticket", :updated_by_id => 1, :created_by_id => 1 )
  1784. Translation.create_if_not_exists( :locale => 'de', :source => "You have not created a Ticket yet.", :target => "Sie haben noch kein Ticket erstellt.", :updated_by_id => 1, :created_by_id => 1 )
  1785. Translation.create_if_not_exists( :locale => 'de', :source => "The way to communicate with us is this thing called \"Ticket\".", :target => "Der Weg um mit uns zu kommunizieren ist das sogenannte \"Ticket\".", :updated_by_id => 1, :created_by_id => 1 )
  1786. Translation.create_if_not_exists( :locale => 'de', :source => "or", :target => "oder", :updated_by_id => 1, :created_by_id => 1 )
  1787. Translation.create_if_not_exists( :locale => 'de', :source => "yes", :target => "ja", :updated_by_id => 1, :created_by_id => 1 )
  1788. Translation.create_if_not_exists( :locale => 'de', :source => "no", :target => "nein", :updated_by_id => 1, :created_by_id => 1 )
  1789. Translation.create_if_not_exists( :locale => 'de', :source => "Attachment", :target => "Anhang", :updated_by_id => 1, :created_by_id => 1 )
  1790. Translation.create_if_not_exists( :locale => 'de', :source => "Year", :target => "Jahr", :updated_by_id => 1, :created_by_id => 1 )
  1791. Translation.create_if_not_exists( :locale => 'de', :source => "Month", :target => "Monat", :updated_by_id => 1, :created_by_id => 1 )
  1792. Translation.create_if_not_exists( :locale => 'de', :source => "Day", :target => "Tag", :updated_by_id => 1, :created_by_id => 1 )
  1793. Translation.create_if_not_exists( :locale => 'de', :source => "Closed", :target => "Geschlossen", :updated_by_id => 1, :created_by_id => 1 )
  1794. Translation.create_if_not_exists( :locale => 'de', :source => "Re-Open", :target => "Wiedereröffnet", :updated_by_id => 1, :created_by_id => 1 )
  1795. Translation.create_if_not_exists( :locale => 'de', :source => "Day", :target => "Tag", :updated_by_id => 1, :created_by_id => 1 )
  1796. Translation.create_if_not_exists( :locale => 'de', :source => "First Solution", :target => "Erstlösung", :updated_by_id => 1, :created_by_id => 1 )
  1797. Translation.create_if_not_exists( :locale => 'de', :source => "Vendor", :target => "Hersteller", :updated_by_id => 1, :created_by_id => 1 )
  1798. Translation.create_if_not_exists( :locale => 'de', :source => "Action", :target => "Aktion", :updated_by_id => 1, :created_by_id => 1 )
  1799. Translation.create_if_not_exists( :locale => 'de', :source => "uninstall", :target => "deinstallieren", :updated_by_id => 1, :created_by_id => 1 )
  1800. Translation.create_if_not_exists( :locale => 'de', :source => "install", :target => "installieren", :updated_by_id => 1, :created_by_id => 1 )
  1801. Translation.create_if_not_exists( :locale => 'de', :source => "reinstall", :target => "erneut installieren", :updated_by_id => 1, :created_by_id => 1 )
  1802. Translation.create_if_not_exists( :locale => 'de', :source => "deactivate", :target => "deaktivieren", :updated_by_id => 1, :created_by_id => 1 )
  1803. Translation.create_if_not_exists( :locale => 'de', :source => "activate", :target => "aktivieren", :updated_by_id => 1, :created_by_id => 1 )
  1804. Translation.create_if_not_exists( :locale => 'de', :source => "uninstalled", :target => "deinstalliert", :updated_by_id => 1, :created_by_id => 1 )
  1805. Translation.create_if_not_exists( :locale => 'de', :source => "installed", :target => "installiert", :updated_by_id => 1, :created_by_id => 1 )
  1806. Translation.create_if_not_exists( :locale => 'de', :source => "deactivated", :target => "deaktiviert", :updated_by_id => 1, :created_by_id => 1 )
  1807. Translation.create_if_not_exists( :locale => 'de', :source => "activated", :target => "aktiviert", :updated_by_id => 1, :created_by_id => 1 )
  1808. Translation.create_if_not_exists( :locale => 'de', :source => "new", :target => "neu", :updated_by_id => 1, :created_by_id => 1 )
  1809. Translation.create_if_not_exists( :locale => 'de', :source => "note", :target => "Notiz", :updated_by_id => 1, :created_by_id => 1 )
  1810. Translation.create_if_not_exists( :locale => 'de', :source => "phone", :target => "Telefon", :updated_by_id => 1, :created_by_id => 1 )
  1811. Translation.create_if_not_exists( :locale => 'de', :source => "web", :target => "Web", :updated_by_id => 1, :created_by_id => 1 )
  1812. #Translation.create_if_not_exists( :locale => 'de', :source => "", :target => "", :updated_by_id => 1, :created_by_id => 1 )