Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import getpass, time, pickle
- print ("""
- ____ _____ ____ _ ____
- / ___\/ __// _ \/ \ /|/ ___\
- | \| \ | / \|| |\ ||| \
- \___ || /_ | |-||| | \||\___ |
- \____/\____\\_/ \|\_/ \|\____/
- _ ____ _ ____ _____ ____ ____ ____ _____ ____ ____ _
- / \ |\/ _ \/ \/ _\/ __/ / __\/ __\/ _ \/ __// __\/ _ \/ \__/|
- | | //| / \|| || / | \ | \/|| \/|| / \|| | _| \/|| / \|| |\/||
- | \// | \_/|| || \__| /_ | __/| /| \_/|| |_//| /| |-||| | ||
- \__/ \____/\_/\____/\____\ \_/ \_/\_\\____/\____\\_/\_\\_/ \|\_/ \|
- _____ _ _ _ _____
- /__ __\/ \ /|/ \/ \ /|/ __/
- / \ | |_||| || |\ ||| | _
- | | | | ||| || | \||| |_//
- \_/ \_/ \|\_/\_/ \|\____\
- """)
- Username = "seanboyd"
- Password = "password"
- ticket_number = []
- analyst_names = []
- def get_username():
- promptusername = input("\n""Enter Username: ")
- return promptusername
- def get_password():
- promptpassword = getpass.getpass("\n""Enter Password: ")
- return promptpassword
- def main():
- print("\nType the name of the feature you need")
- print("""\nFeatues so far:
- 1 - Avaya IP Server Addresses
- 2 - CMS Server IP Addresses
- 3 - Agency Voicemail Dial In Number
- 4 - Voice Coaching""")
- get_feature = input("Feature: ")
- if get_feature == "1":
- print("\nLoading Resource..")
- time.sleep(3)
- AvayaIPaddresses()
- elif get_feature == "2":
- print("\nLoading Resource..")
- time.sleep(3)
- cms_serverIP()
- elif get_feature == "3":
- print("\nLoading Resource..")
- time.sleep(3)
- agency_voicemail()
- elif get_feature == "4":
- print("\nLoading Resource..")
- time.sleep(3)
- coachingfunction()
- else:
- print(""""\n***Invalid selection***
- ***RETURNING TO MAIN MENU***""")
- time.sleep(5)
- main()
- def AvayaIPaddresses():
- print("\nUser Hub 1 - 10.22.38.150 ")
- print("\nUser Hub 2 - 10.24.21.145 ")
- print("\nUser Hub 3 - 10.24.21.162")
- print("\nCCHUBA - 10.22.38.100")
- print("\nNorthbrook - 10.27.144.39 ")
- get_request = input("\nTo go back to the main menu press 1: ")
- if get_request == "1":
- main()
- else:
- input("\nPress Any Key To Exit")
- def cms_serverIP():
- print("\nCCHUBA - 10.19.6.97")
- print("\nUser Hub - 10.19.6.98")
- print("\nUser Hub - 10.19.6.99")
- get_request = input("\nTo go back to the main menu press 1: ")
- if get_request == "1":
- main()
- else:
- input("\nPress Any Key To Exit")
- def agency_voicemail():
- print("\nAgency Voicemail Dial In Number is - (866) 772-1860")
- get_request = input("\nTo go back to the main menu press 1: ")
- if get_request == "1":
- main()
- else:
- input("\nPress Any Key To Exit")
- def coachingfunction():
- print("""\nWelcome to the coaching area
- MENU
- 1 - Add Coaching Records
- 2 - Look Up Coaching Records""")
- get_response = input("\nEnter option: ")
- if get_response == "1":
- get_ticketnumber()
- get_analystname()
- print("\nThank you, information has been added, returning back to previous screen")
- coachingfunction()
- elif get_response == "2":
- display_coaching()
- def display_coaching():
- print("Ticket Number: ", ticket_number)
- print("Analyst Name: ", analyst_names)
- input("press any key to exit")
- def get_ticketnumber():
- get_tickets = input("Enter Ticket Number: ")
- ticket_number.append(get_tickets)
- return get_tickets
- def get_analystname():
- get_analyst = input("Enter Analyst NTID: ")
- analyst_names.append(get_analyst)
- return get_analyst
- def mainLogin():
- user_response = get_username()
- user_password = get_password()
- if user_response == Username and user_password == Password:
- print("\nLogin Successfull")
- main()
- else:
- print ("\n""Login failed, username or password incorrect. Try again")
- mainLogin()
- mainLogin()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement