genservice.py 2.1 KB

1234567891011121314151617181920212223242526
  1. import hashlib
  2. #rename this file to config.py
  3. #JID="example@msg.sharix-app.org"
  4. USERLIST=["guide_backend","drive_backend","assist_backend","sports_backend","open_backend","guide_webadmin_backend","drive_webadmin_backend","assist_webadmin_backend","sports_webadmin_backend","open_webadmin_backend","guide_tickets_backend","drive_tickets_backend","assist_tickets_backend","sports_tickets_backend","open_tickets_backend"]
  5. SERVICEADMINLIST=["79999999999","99999999999","79876543210","799999999999"]
  6. #BOTLIST=["open_template_bot","open_strequest_assigned","open_strequest_inprocess","open_strequest_new","open_strequest_reopened","open_strequest_wontfix","open_strequest_done","open_strequest_duplicate","open_strequest_closed","open_accessrequest_pending","open_accessrequest_accepted","open_accessrequest_declined","open_negrequest_pending","open_negrequest_accepted","open_negrequest_declined","open_servicerequest_template","open_servicerequest_booked","open_servicerequest_assigned","open_servicerequest_accepted","open_servicerequest_pending","open_servicerequest_declined","open_servicerequest_prestart","open_servicerequest_process","open_servicerequest_forcemajeure","open_servicerequest_forcemajeurecancelled","open_servicerequest_done","open_servicerequest_cancelled","open_servicerequest_closed"]
  7. JSERVER="ej.sharix-app.org"
  8. PASSWORD="12345"
  9. PORT=349
  10. API_URL = "https://testbase.sharix-app.org"
  11. #AUTH_API_URL = "https://testbase.sharix-app.org/auth/token/login/"
  12. #REG_API_URL = "https://testbase.sharix-app.org/v1/auth/users/"
  13. #тут надо указывать еще порт сервера
  14. #первое время пусть пароль будет у всех обработчиков одинаковый, далее надо будет генерировать уникальные связки на основе логина и ключа, указанного в файле.
  15. # бот в конверс
  16. # JID="bottickets@msg.sharix-app.org"
  17. # PASSWORD="12345!"
  18. for i in range (len(USERLIST)):
  19. print(USERLIST[i], hashlib.md5((USERLIST[i]+PASSWORD).encode('utf-8')).hexdigest())