Beispiel #1
0
 def query(self, session):
     query = (session.query(User.id.label('id'),
                            User.uuid.label('uuid'),
                            UserLine.line_id.label('line_id'),
                            User.agentid.label('agent_id'),
                            User.firstname.label('firstname'),
                            func.nullif(User.lastname, '').label('lastname'),
                            func.nullif(User.email, '').label('email'),
                            func.nullif(User.mobilephonenumber, '').label('mobile_phone_number'),
                            Voicemail.mailbox.label('voicemail_number'),
                            func.nullif(User.userfield, '').label('userfield'),
                            func.nullif(User.description, '').label('description'),
                            Extension.exten.label('exten'),
                            Extension.context.label('context')))
     return query
Beispiel #2
0
 def unconditional_destination(cls):
     return func.nullif(cls.destunc, '')
Beispiel #3
0
 def noanswer_destination(cls):
     return func.nullif(cls.destrna, '')
Beispiel #4
0
 def faeding_leit(self):
     return func.nullif(cast(func.right(self.faeding, 4), Numeric(4, 0)), 0)
Beispiel #5
0
 def description(cls):
     return func.nullif(cls.webi_description, '')
Beispiel #6
0
 def userfield(cls):
     return func.nullif(cls.webi_userfield, '')
Beispiel #7
0
 def music_on_hold(cls):
     return func.nullif(cls.musiconhold, '')
Beispiel #8
0
 def caller_id(cls):
     return func.nullif(cls.callerid, '')
Beispiel #9
0
 def music_on_hold(cls):
     return func.nullif(cls.musiconhold, '')
Beispiel #10
0
 def outgoing_caller_id(cls):
     return func.nullif(cls.outcallerid, '')
Beispiel #11
0
 def caller_id(cls):
     return func.nullif(cls.callerid, '')
Beispiel #12
0
 def password(cls):
     return func.nullif(cls.passwdclient, '')
Beispiel #13
0
 def username(cls):
     return func.nullif(cls.loginclient, '')
Beispiel #14
0
 def interface_suffix(cls):
     return func.nullif(cls.intfsuffix, '')
Beispiel #15
0
 def username(cls):
     return func.nullif(cls.loginclient, '')
Beispiel #16
0
 def password(cls):
     return func.nullif(cls.passwdclient, '')
Beispiel #17
0
 def mobile_phone_number(cls):
     return func.nullif(cls.mobilephonenumber, '')
Beispiel #18
0
 def outgoing_caller_id(cls):
     return func.nullif(cls.outcallerid, '')
Beispiel #19
0
 def userfield(cls):
     return func.nullif(cls.webi_userfield, '')
Beispiel #20
0
 def mobile_phone_number(cls):
     return func.nullif(cls.mobilephonenumber, '')
Beispiel #21
0
 def lastname(cls):
     return func.nullif(cls.webi_lastname, '')
Beispiel #22
0
 def lastname(cls):
     return func.nullif(cls.webi_lastname, '')
Beispiel #23
0
 def description(cls):
     return func.nullif(cls.webi_description, '')
Beispiel #24
0
 def provisioning_code(cls):
     return cast(func.nullif(cls.provisioningid, 0), String)
Beispiel #25
0
 def busy_destination(cls):
     return func.nullif(cls.destbusy, '')