Guest User

Untitled

a guest
Jul 18th, 2018
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.80 KB | None | 0 0
  1. {
  2. "integrations": {
  3. "centralstation": {
  4. "mappings": {
  5. "person": {
  6. "person": {
  7. "name": "{{lastName}}",
  8. "first_name": "{{firstName}}",
  9. "gender": "{{(gender === -1) ? (null) : ((gender === 0) ? ('male_user') : ('female_user'))}}",
  10. "salutation": "{{(gender === -1) ? (null) : ((gender === 0) ? ('Herr') : ('Frau'))}}",
  11. "title": "{{title}}",
  12. "tels_attributes": {
  13. "0": {
  14. "id": "{{ person.phone_id }}",
  15. "name": "{{phone}}",
  16. "atype": "office"
  17. },
  18. "1": {
  19. "id": "{{ person.mobile_id }}",
  20. "name": "{{mobile}}",
  21. "atype": "mobile"
  22. },
  23. "2": {
  24. "id": "{{ person.fax_id }}",
  25. "name": "{{fax}}",
  26. "atype": "fax"
  27. }
  28. },
  29. "emails_attributes": {
  30. "0": {
  31. "id": "{{ person.email_id }}",
  32. "name": "{{email}}",
  33. "atype": "office"
  34. }
  35. },
  36. "addrs_attributes": {
  37. "0": {
  38. "id": "{{person.addrs_id}}",
  39. "street": "{{street}}",
  40. "zip": "{{zip}}",
  41. "city": "{{city}}",
  42. "country": "{{country}}",
  43. "atype": "work_hq"
  44. }
  45. },
  46. "sms_attributes": {
  47. "0": {
  48. "id": "{{person.xing_id}}",
  49. "name": "{{ social.xing.url }}",
  50. "atype": "xing"
  51. },
  52. "1": {
  53. "id": "{{person.linkedin_id}}",
  54. "name": "{{ social.linkedin.url }}",
  55. "atype": "linkedin"
  56. },
  57. "2": {
  58. "id": "{{person.facebook_id}}",
  59. "name": "{{ social.facebook.url }}",
  60. "atype": "facebook"
  61. },
  62. "3": {
  63. "id": "{{person.twitter_id}}",
  64. "name": "{{ social.twitter.url }}",
  65. "atype": "twitter"
  66. }
  67. },
  68. "positions_attributes": {
  69. "0": {
  70. "id": "{{person.position_id}}",
  71. "name": "{{position}}",
  72. "company_id": "{{company_id}}",
  73. "atype": "office",
  74. "primary_function": "true",
  75. "former": "false"
  76. }
  77. }
  78. }
  79. },
  80. "company": {
  81. "company": {
  82. "name": "{{ organization }}",
  83. "tels_attributes": {
  84. "0": {
  85. "id": "{{ company.phone_id }}",
  86. "name": "{{phone}}",
  87. "atype": "office"
  88. },
  89. "1": {
  90. "id": "{{ company.mobile_id }}",
  91. "name": "{{mobile}}",
  92. "atype": "mobile"
  93. },
  94. "2": {
  95. "id": "{{ company.fax_id }}",
  96. "name": "{{fax}}",
  97. "atype": "fax"
  98. }
  99. },
  100. "addrs_attributes": {
  101. "0": {
  102. "id": "{{company.addrs_id}}",
  103. "street": "{{street}}",
  104. "zip": "{{zip}}",
  105. "city": "{{city}}",
  106. "country": "{{country}}",
  107. "atype": "work_hq"
  108. }
  109. },
  110. "homepages_attributes": {
  111. "0": {
  112. "id": "{{ company.website_id }}",
  113. "name": "{{website}}",
  114. "atype": "office"
  115. }
  116. }
  117. }
  118. },
  119. "deal": {
  120. "deal": {
  121. "name": "{{ deal_title }}",
  122. "value": "{{ deal_value }}",
  123. "value_type": "{{ deal_value_type }}",
  124. "value_count": "{{ deal_value_count || 0 }}",
  125. "target_date": "{{ deal_date }}",
  126. "description": "{{ deal_description}}",
  127. "person_ids_set": "{{person_id}}",
  128. "company_id": "{{company_id}}"
  129. }
  130. }
  131. }
  132. }
  133. }
  134. }
Add Comment
Please, Sign In to add comment