# Path: bashhub/model/serializable.py
# class Serializable(object):
#     def to_JSON(self):
#         underscores = jsonpickle.encode(self)
#         temp = json.loads(underscores)
#         camel_case = self.convert_json(temp, self.lower_camelize)
#         return jsonpickle.encode(camel_case)
# 
#     @classmethod
#     def lower_camelize(cls, string):
#         return inflection.camelize(string, False)
# 
#     @classmethod
#     def convert_json(cls, d, convert):
#         new_d = {}
#         for k, v in iteritems(d):
#             new_d[convert(k)] = cls.convert_json(v, convert) if isinstance(
#                 v, dict) else v
#         return new_d
# 
#     @classmethod
#     def from_JSON(cls, response):
#         temp_camel_case = json.loads(response)
#         temp = cls.convert_json(temp_camel_case, inflection.underscore)
# 
#         # Add back our python classname so jsonpickle
#         # knows what class to deserialize it as
#         class_name = cls.__module__ + '.' + cls.__name__
#         temp['py/object'] = class_name
# 
#         pickle = json.dumps(temp)
#         return jsonpickle.decode(pickle)
# 
#     @classmethod
#     def from_JSON_list(cls, response):
# 
#         #response = json.load(response)
# 
#         # Use list comprehension to map every json object
#         # back to its object with from_JSON
#         items = [cls.from_JSON(json.dumps(item)) for item in response]
#         return items


from bson.objectid import ObjectId
from time import *
from .serializable import Serializable
import jsonpickle
import sys
import uuid
                 exit_status=None):
        self.command = command
        self.path = path
        self.uuid = uuid
        self.exit_status = exit_status
        self.username = username
        self.system_name = system_name
        self.session_id = session_id
        self.created = created
        self.id = id

    # Optional fields not set by jsonpickle.
    exit_status = None


class RegisterUser(Serializable):
    def __init__(self, email, username, password, registration_code=""):
        self.email = email
        self.username = username
        self.password = password
        self.registration_code = registration_code


class LoginForm(Serializable):
    def __init__(self, username, password, mac=None):
        self.username = username
        self.password = password
        self.mac = mac



# Path: bashhub/model/serializable.py
# class Serializable(object):
#     def to_JSON(self):
#         underscores = jsonpickle.encode(self)
#         temp = json.loads(underscores)
#         camel_case = self.convert_json(temp, self.lower_camelize)
#         return jsonpickle.encode(camel_case)
# 
#     @classmethod
#     def lower_camelize(cls, string):
#         return inflection.camelize(string, False)
# 
#     @classmethod
#     def convert_json(cls, d, convert):
#         new_d = {}
#         for k, v in iteritems(d):
#             new_d[convert(k)] = cls.convert_json(v, convert) if isinstance(
#                 v, dict) else v
#         return new_d
# 
#     @classmethod
#     def from_JSON(cls, response):
#         temp_camel_case = json.loads(response)
#         temp = cls.convert_json(temp_camel_case, inflection.underscore)
# 
#         # Add back our python classname so jsonpickle
#         # knows what class to deserialize it as
#         class_name = cls.__module__ + '.' + cls.__name__
#         temp['py/object'] = class_name
# 
#         pickle = json.dumps(temp)
#         return jsonpickle.decode(pickle)
# 
#     @classmethod
#     def from_JSON_list(cls, response):
# 
#         #response = json.load(response)
# 
#         # Use list comprehension to map every json object
#         # back to its object with from_JSON
#         items = [cls.from_JSON(json.dumps(item)) for item in response]
#         return items


# Path: bashhub/model/command.py
from bson.objectid import ObjectId
from time import *
from .serializable import Serializable
import jsonpickle
import sys
import uuid

                 exit_status=None):
        self.command = command
        self.path = path
        self.uuid = uuid
        self.exit_status = exit_status
        self.username = username
        self.system_name = system_name
        self.session_id = session_id
        self.created = created
        self.id = id

    # Optional fields not set by jsonpickle.
    exit_status = None


class RegisterUser(Serializable):
    def __init__(self, email, username, password, registration_code=""):
        self.email = email
        self.username = username
        self.password = password
        self.registration_code = registration_code


class LoginForm(Serializable):
    def __init__(self, username, password, mac=None):
        self.username = username
        self.password = password
        self.mac = mac



class LoginResponse(Serializable):