Advertisement
Guest User

Untitled

a guest
Apr 5th, 2018
112
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.49 KB | None | 0 0
  1. import getpass, time, pickle
  2.  
  3. print ("""
  4. ____ _____ ____ _ ____
  5. / ___\/ __// _ \/ \ /|/ ___\
  6. | \| \ | / \|| |\ ||| \
  7. \___ || /_ | |-||| | \||\___ |
  8. \____/\____\\_/ \|\_/ \|\____/
  9. _ ____ _ ____ _____ ____ ____ ____ _____ ____ ____ _
  10. / \ |\/ _ \/ \/ _\/ __/ / __\/ __\/ _ \/ __// __\/ _ \/ \__/|
  11. | | //| / \|| || / | \ | \/|| \/|| / \|| | _| \/|| / \|| |\/||
  12. | \// | \_/|| || \__| /_ | __/| /| \_/|| |_//| /| |-||| | ||
  13. \__/ \____/\_/\____/\____\ \_/ \_/\_\\____/\____\\_/\_\\_/ \|\_/ \|
  14. _____ _ _ _ _____
  15. /__ __\/ \ /|/ \/ \ /|/ __/
  16. / \ | |_||| || |\ ||| | _
  17. | | | | ||| || | \||| |_//
  18. \_/ \_/ \|\_/\_/ \|\____\
  19. """)
  20.  
  21. Username = "seanboyd"
  22. Password = "password"
  23. ticket_number = []
  24. analyst_names = []
  25.  
  26.  
  27.  
  28.  
  29. def get_username():
  30. promptusername = input("\n""Enter Username: ")
  31. return promptusername
  32.  
  33. def get_password():
  34. promptpassword = getpass.getpass("\n""Enter Password: ")
  35. return promptpassword
  36.  
  37. def main():
  38. print("\nType the name of the feature you need")
  39. print("""\nFeatues so far:
  40. 1 - Avaya IP Server Addresses
  41. 2 - CMS Server IP Addresses
  42. 3 - Agency Voicemail Dial In Number
  43. 4 - Voice Coaching""")
  44. get_feature = input("Feature: ")
  45. if get_feature == "1":
  46. print("\nLoading Resource..")
  47. time.sleep(3)
  48. AvayaIPaddresses()
  49. elif get_feature == "2":
  50. print("\nLoading Resource..")
  51. time.sleep(3)
  52. cms_serverIP()
  53. elif get_feature == "3":
  54. print("\nLoading Resource..")
  55. time.sleep(3)
  56. agency_voicemail()
  57. elif get_feature == "4":
  58. print("\nLoading Resource..")
  59. time.sleep(3)
  60. coachingfunction()
  61. else:
  62. print(""""\n***Invalid selection***
  63. ***RETURNING TO MAIN MENU***""")
  64. time.sleep(5)
  65. main()
  66.  
  67. def AvayaIPaddresses():
  68. print("\nUser Hub 1 - 10.22.38.150 ")
  69. print("\nUser Hub 2 - 10.24.21.145 ")
  70. print("\nUser Hub 3 - 10.24.21.162")
  71. print("\nCCHUBA - 10.22.38.100")
  72. print("\nNorthbrook - 10.27.144.39 ")
  73. get_request = input("\nTo go back to the main menu press 1: ")
  74. if get_request == "1":
  75. main()
  76. else:
  77. input("\nPress Any Key To Exit")
  78.  
  79. def cms_serverIP():
  80. print("\nCCHUBA - 10.19.6.97")
  81. print("\nUser Hub - 10.19.6.98")
  82. print("\nUser Hub - 10.19.6.99")
  83. get_request = input("\nTo go back to the main menu press 1: ")
  84. if get_request == "1":
  85. main()
  86. else:
  87. input("\nPress Any Key To Exit")
  88.  
  89.  
  90. def agency_voicemail():
  91. print("\nAgency Voicemail Dial In Number is - (866) 772-1860")
  92. get_request = input("\nTo go back to the main menu press 1: ")
  93. if get_request == "1":
  94. main()
  95. else:
  96. input("\nPress Any Key To Exit")
  97.  
  98.  
  99. def coachingfunction():
  100. print("""\nWelcome to the coaching area
  101. MENU
  102. 1 - Add Coaching Records
  103. 2 - Look Up Coaching Records""")
  104. get_response = input("\nEnter option: ")
  105. if get_response == "1":
  106. get_ticketnumber()
  107. get_analystname()
  108. print("\nThank you, information has been added, returning back to previous screen")
  109. coachingfunction()
  110. elif get_response == "2":
  111. display_coaching()
  112.  
  113.  
  114. def display_coaching():
  115. print("Ticket Number: ", ticket_number)
  116. print("Analyst Name: ", analyst_names)
  117. input("press any key to exit")
  118.  
  119. def get_ticketnumber():
  120. get_tickets = input("Enter Ticket Number: ")
  121. ticket_number.append(get_tickets)
  122. return get_tickets
  123.  
  124. def get_analystname():
  125. get_analyst = input("Enter Analyst NTID: ")
  126. analyst_names.append(get_analyst)
  127. return get_analyst
  128.  
  129. def mainLogin():
  130. user_response = get_username()
  131. user_password = get_password()
  132. if user_response == Username and user_password == Password:
  133. print("\nLogin Successfull")
  134. main()
  135. else:
  136. print ("\n""Login failed, username or password incorrect. Try again")
  137. mainLogin()
  138.  
  139.  
  140. mainLogin()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement