Advertisement
Guest User

Untitled

a guest
Jun 18th, 2019
133
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 16.19 KB | None | 0 0
  1. require! {
  2. \prelude-ls : { obj-to-pairs, pairs-to-obj, map, each, join }
  3. }
  4.  
  5. menu =
  6. "Пройти верификацию" :
  7. goto: "private-verification"
  8. "Телеграм-Паспорт" :
  9. goto: "telegram-passport"
  10. "Обратиться в поддержку" :
  11. goto: "support"
  12. config =
  13. "main:bot-step" :
  14. on-enter:
  15. "$global.admins = [$user.chat_id] if not $global.admins?"
  16. "$user.verification = $user.verification ? {}"
  17. "$user.verification.types = []"
  18. text: """
  19. Здравствуйте!
  20. Меня зовут Coinpay bot. Я помогу Вам пройти верификацию, для того чтобы получить доступа к расширенному функционалу и увеличенным лимитам на нашей платформе
  21. Нажмите "Пройти верификацию" для начала процесса заполнения анкеты
  22. """
  23. menu: menu
  24. on-text:
  25. "({ user, $app }, cb)-> $app.try-add-admin $user, $text, cb"
  26. "support:bot-step":
  27. text: """
  28. Напишите, пожалуйста сообщение нашему менеджеру. Мы постараемся максимально быстро рассмотреть Ваш запрос и обратимся к Вам с ответом в телеграм.
  29. """
  30. on-text:
  31. store:
  32. "({ user, $app }, cb)-> $app.contact-support $user, $text, cb"
  33. goto: "main"
  34. menu: menu
  35. "telegram-passport:bot-step" :
  36. on-enter:
  37. "$user.verification.types.push 'Верификация Приватного Аккаунта' if $user.verification.types.index-of('Верификация Приватного Аккаунта') is -1"
  38. text : "Предоставьте, пожалуйста, Ваши документы перейдя по ссылке"
  39. on-text:
  40. store:
  41. "$user.verification.telegram-passport = $text"
  42. goto: "private-verification9"
  43. buttons:
  44. "Предоставить документы" : 'request_passport personal_details passport address utility_bill phone_number email'
  45. "private-verification:bot-step":
  46. on-enter:
  47. "$user.verification.types.push 'Верификация Приватного Аккаунта' if $user.verification.types.index-of('Верификация Приватного Аккаунта') is -1"
  48. text : "Ваше имя, телефон"
  49. on-text:
  50. validate: "[0-9]+"
  51. store:
  52. "$user.verification.contact = $text"
  53. goto: "private-verification3"
  54. menu:
  55. "Поделиться контактом" : 'request_contact'
  56. "private-verification3:bot-step":
  57. text : "Город в котором Вы проживаете"
  58. on-text:
  59. store:
  60. "$user.verification.city = $text"
  61. goto: "private-verification4"
  62. menu:
  63. "Расшарить локацию" : \request_location
  64. "private-verification4:bot-step":
  65. text : "Первая страница паспорта / приложить фото"
  66. on-text:
  67. store:
  68. "$user.verification.passport1 = $text"
  69. goto: "private-verification5"
  70. menu: menu
  71. "private-verification5:bot-step":
  72. text : "Вторая страница паспорта / приложить фото"
  73. on-text:
  74. store:
  75. "$user.verification.passport2 = $text"
  76. goto: "private-verification6"
  77. menu: menu
  78. "private-verification6:bot-step":
  79. text : "Прописка / приложить фото"
  80. on-text:
  81. store:
  82. "$user.verification.passportAddress = $text"
  83. goto: "private-verification7"
  84. menu: menu
  85. "private-verification7:bot-step":
  86. text : "ИНН / приложить фото"
  87. on-text:
  88. store:
  89. "$user.verification.identity = $text"
  90. goto: "private-verification8"
  91. menu: menu
  92. "private-verification8:bot-step":
  93. text : "Сфотографируйтесь, пожалуйста, с паспортом в руках и приложите фото сюда"
  94. images: \https://res.cloudinary.com/nixar-work/image/upload/v1560434060/kyc.png
  95. on-text:
  96. store:
  97. "$user.verification.self-photo = $text"
  98. goto: "private-verification9"
  99. menu: menu
  100. "private-verification9:bot-step":
  101. redirect-condition:
  102. "$check.result = $user.verification.types.index-of('Дебетная Карта') > -1" : "private-verification10"
  103. text : "Спасибо, Вы заполнили все данные и теперь можете ответить еще на несколько вопросов и получить карту банка Конкорд "
  104. buttons:
  105. "Завершить" : "goto:private-finish"
  106. "Получить дебетную карту" :
  107. store: "$user.verification.type = 'Получить карту'"
  108. goto : "private-verification10"
  109. "private-finish:bot-step":
  110. on-enter:
  111. "({ user, $app }, cb)-> $app.send-for-review $user, cb"
  112. text: "Спасибо ты ответил на все вопросы, когда наша служба верификации проверить все данные, мы Вам сообщим"
  113. menu: menu
  114. "private-verification10:bot-step":
  115. text: "Образование"
  116. buttons:
  117. "Cреднее":
  118. store: "$user.verification.degree = 'Cреднее'"
  119. goto: "private-verification11"
  120. "Высшее" :
  121. store: "$user.verification.degree = 'Высшее'"
  122. goto: "private-verification11"
  123. "Ученая степень" :
  124. store: "$user.verification.degree = 'Ученая степень'"
  125. goto: "private-verification11"
  126. "private-verification11:bot-step":
  127. text: "Социальный статус"
  128. buttons:
  129. "Не работаю":
  130. store: "$user.verification.work-status = 'Не работаю'"
  131. goto: "private-verification12"
  132. "Предприниматель" :
  133. store: "$user.verification.work-status = 'Предприниматель'"
  134. goto: "private-verification12"
  135. "Сотрудник компании" :
  136. store: "$user.verification.work-status = 'Сотрудник компании'"
  137. goto: "private-verification12"
  138. "private-verification12:bot-step":
  139. text: "Семейное положение"
  140. buttons:
  141. "Женат":
  142. store: "$user.verification.family-status = 'Женат'"
  143. goto: "private-verification13"
  144. "Не женат" :
  145. store: "$user.verification.family-status = 'Не женат'"
  146. goto: "private-verification13"
  147. "private-verification13:bot-step":
  148. text: "Количество членов семьи, в т.ч. неполнолетние дети (количество человек)"
  149. buttons:
  150. "1":
  151. store: "$user.verification.family-count = 1"
  152. goto: "private-verification14"
  153. "2":
  154. store: "$user.verification.family-count = 2"
  155. goto: "private-verification14"
  156. "3":
  157. store: "$user.verification.family-count = 3"
  158. goto: "private-verification14"
  159. "4":
  160. store: "$user.verification.family-count = 4"
  161. goto: "private-verification14"
  162. "5":
  163. store: "$user.verification.family-count = 5"
  164. goto: "private-verification14"
  165. "6":
  166. store: "$user.verification.family-count = 6"
  167. goto: "private-verification14"
  168. "7":
  169. store: "$user.verification.family-count = 7"
  170. goto: "private-verification14"
  171. "8+":
  172. store: "$user.verification.family-count = '8+'"
  173. goto: "private-verification14"
  174. "private-verification14:bot-step":
  175. redirect-condition:
  176. "$check.result = $user.verification.work-status is 'Не работаю'" : \private-finish
  177. text: "Тип организации, в которой вы работаете"
  178. buttons:
  179. "ФОП" :
  180. store: "$user.verification.company-type = 'ФОП'"
  181. goto: "private-verification15"
  182. "Юридическое лицо" :
  183. store: "$user.verification.company-type = 'Юридическое лицо'"
  184. goto: "private-verification15"
  185. "private-verification15:bot-step":
  186. text: "Название организации"
  187. on-text:
  188. store: "$user.verification.company-name = $text"
  189. goto: "private-verification16"
  190. menu: menu
  191. "private-verification16:bot-step":
  192. text: "Сфера деятельности предприятия"
  193. on-text:
  194. store: "$user.verification.company-area = $text"
  195. goto: "private-verification17"
  196. menu: menu
  197. "private-verification17:bot-step":
  198. text: "Сайт компании"
  199. on-text:
  200. store: "$user.verification.company-area = $text"
  201. goto: "private-verification18"
  202. menu: menu
  203. "private-verification18:bot-step":
  204. text: "Ваша должность"
  205. on-text:
  206. store: "$user.verification.position = $text"
  207. goto: "private-verification19"
  208. menu: menu
  209. "private-verification19:bot-step":
  210. redirect-condition:
  211. "$check.result = $user.verification.types.index-of('Кредитная Карта') > -1" : "private-verification20"
  212. text : "Спасибо ты ответил на все вопросы, когда наша служба верификации проверить все данные, мы Вам сообщим, также мы сообщим когда и где ты можешь забрать свою карту"
  213. buttons:
  214. "Завершить" : "goto:private-finish"
  215. "Получить кредитную карту" :
  216. store:
  217. "$user.verification.types.push 'Кредитная Карта'"
  218. "$user.verification.type = 'Получить кредитную карту'"
  219. goto : "private-verification20"
  220. "private-verification20:bot-step":
  221. text : "Количество сотрудников в компании"
  222. on-text :
  223. store:
  224. "$store.verification.company-size = $text"
  225. goto: "private-verification21"
  226. menu: menu
  227. "private-verification21:bot-step":
  228. text : "Сколько времени вы работает на данном предприятии – цифры и мес, год"
  229. on-text :
  230. store:
  231. "$store.verification.working-start = $text"
  232. goto: "private-verification22"
  233. menu: menu
  234. "private-verification22:bot-step":
  235. text : "Ваша должность"
  236. on-text :
  237. store:
  238. "$store.verification.position = $text"
  239. goto: "private-verification23"
  240. menu: menu
  241. "private-verification23:bot-step":
  242. text : "Общий трудовой стаж – цифра, мес, год"
  243. on-text :
  244. store:
  245. "$store.verification.overall-experience = $text"
  246. goto: "private-verification24"
  247. menu: menu
  248. "private-verification24:bot-step":
  249. text : "Размер ежемесячного дохода (гривна, всего, в среднем за год)"
  250. on-text :
  251. store:
  252. "$store.verification.income-avarage-per-year = $text"
  253. goto: "private-verification25"
  254. menu: menu
  255. "private-verification25:bot-step" :
  256. text : "Имя и Фамилия контактного лица (для экстренной связи, старше 23 лет)"
  257. on-text :
  258. store:
  259. "$store.verification.extra-contact = $text"
  260. goto: "private-verification26"
  261. menu: menu
  262. "private-verification26:bot-step" :
  263. text : "Кем является для Вас контактное лицо?"
  264. on-text :
  265. store:
  266. "$store.verification.extra-contact-type = $text"
  267. goto: "private-verification27"
  268. menu: menu
  269. "private-verification27:bot-step" :
  270. text : "Номер телефона контактного лица"
  271. on-text :
  272. validate: "[0-9]+"
  273. store:
  274. "$store.verification.extra-contact-phone = $text"
  275. goto: "private-finish"
  276. menu: menu
  277. "private-learn-more:bot-step":
  278. text: """
  279. Условия верификации частный – для прохождения верификации у Вас должен быть с собой паспорт, код и девайс с камерой, вся верификация займет не более 5 минут, так что начинайте прямо сейчас. После верификации Вы сможете получить приятный бонус - карту от нашего партнера банка Concord
  280. Ознакомиться с тарифами для верифицированных пользователей может по ссылке <a href='https://concord.ua/ru'>тут</a>
  281. Ознакомиться с лимитами для верифицированных пользователей можешь по ссылке <a href='https://concord.ua/ru'>тут</a>
  282. Ознакомиться с условиями для карты ты можешь по ссылке <a href='https://concord.ua/ru'>тут</a>
  283. """
  284. menu: menu
  285. "business-learn-more:bot-step" :
  286. text:
  287. """
  288. Условия верификации бизнес – для прохождения верификации для бизнес аккаунта Вам помимо верификации директора c паспортом и кодом, , нам надо будет ответить на несколько вопросов о твоем бизнесе, , вся верификация займет не более 10 минут и ты сможешь получить доступ к максимальному количеству функций и минимальным тарифам на нашей платформе Также ты сможешь получить приятный бонус - карту от нашего партнера банка Concord на имя директора своего предприятия и добавить еще сотрудников если Вам это будет интересно
  289. Ознакомиться с тарифами для верифицированных пользователей можешь по ссылке <a href="https://concord.ua/ru">тут</a>
  290. Ознакомиться с лимитами для верифицированных пользователей можешь по ссылке <a href="https://concord.ua/ru">тут</a>
  291. Ознакомиться с условиями для карты ты можешь по ссылке <a href="https://concord.ua/ru">тут</a>
  292. """
  293. menu: menu
  294. module.exports = config
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement