Subversion Repositories SmartDukaan

Rev

Rev 4681 | Rev 4948 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 4681 Rev 4793
Line 44... Line 44...
44
struct Agent {
44
struct Agent {
45
    1:i64 id,
45
    1:i64 id,
46
    2:string name,
46
    2:string name,
47
    3:string emailId,
47
    3:string emailId,
48
    4:optional i64 managerId,
48
    4:optional i64 managerId,
49
    5:string password
49
    5:string password,
-
 
50
    6:bool is_active;
50
}
51
}
51
 
52
 
52
struct Ticket {
53
struct Ticket {
53
    1:i64 id,
54
    1:i64 id,
54
    2:optional i64 customerId,
55
    2:optional i64 customerId,
Line 127... Line 128...
127
    // Methods to read/write tickets from/in database
128
    // Methods to read/write tickets from/in database
128
    list<Ticket> getTickets(1:SearchFilter searchFilter);
129
    list<Ticket> getTickets(1:SearchFilter searchFilter);
129
    list<Ticket> getUnassignedTickets();
130
    list<Ticket> getUnassignedTickets();
130
    void updateTicket(1:Ticket ticket, 2:Activity activity);
131
    void updateTicket(1:Ticket ticket, 2:Activity activity);
131
    i64 insertTicket(1:Ticket ticket, 2:Activity activity);
132
    i64 insertTicket(1:Ticket ticket, 2:Activity activity);
-
 
133
    void unassignAgentTickets(1:i32 assigneeId);
132
 
134
 
133
    // Methods to read/write activities from/in database
135
    // Methods to read/write activities from/in database
134
    list<Activity> getActivities(1:SearchFilter searchFilter);
136
    list<Activity> getActivities(1:SearchFilter searchFilter);
135
    i64 insertActivity(1:Activity activity);
137
    i64 insertActivity(1:Activity activity);
136
    void markAsRead(1:i64 activityId, 2:i64 agentId);
138
    void markAsRead(1:i64 activityId, 2:i64 agentId);
Line 144... Line 146...
144
    list<string> getPermissionsForRoleName(1:string roleName);
146
    list<string> getPermissionsForRoleName(1:string roleName);
145
 
147
 
146
    // Misc methods
148
    // Misc methods
147
    i64 getLastEmailProcessedTimestamp();
149
    i64 getLastEmailProcessedTimestamp();
148
    void updateLastEmailProcessedTimestamp(1:i64 timestamp);
150
    void updateLastEmailProcessedTimestamp(1:i64 timestamp);
-
 
151
    
-
 
152
    // Method to change active/inactive status of Agent
-
 
153
    void changeAgentStatus(1:bool status, 2:string emailId);
-
 
154
    
-
 
155
    //Method to add a new CRM Agent 
-
 
156
    void insertAgent(1:Agent agent, 2:list<string> role);
149
}
157
}