Subversion Repositories SmartDukaan

Rev

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

Rev 3026 Rev 3087
Line 68... Line 68...
68
}
68
}
69
 
69
 
70
service CRMService {
70
service CRMService {
71
    // Methods to read/write tickets from/in database
71
    // Methods to read/write tickets from/in database
72
    list<Ticket> getTickets(1:i64 customerId);
72
    list<Ticket> getTickets(1:i64 customerId);
-
 
73
    list<Ticket> getAssignedTickets(1:i64 agentId);
-
 
74
    list<Ticket> getOpenTickets();
73
    Ticket getTicket(1:i64 ticketId);
75
    Ticket getTicket(1:i64 ticketId);
74
    void updateTicket(1:Ticket ticket);
76
    void updateTicket(1:Ticket ticket);
75
    i64 insertTicket(1:Ticket ticket);
77
    i64 insertTicket(1:Ticket ticket);
76
 
78
 
77
    // Methods to read/write activities from/in database
79
    // Methods to read/write activities from/in database
Line 80... Line 82...
80
    Activity getActivity(1:i64 activityId);
82
    Activity getActivity(1:i64 activityId);
81
    Activity getLastActivity(1:i64 ticketId);
83
    Activity getLastActivity(1:i64 ticketId);
82
    void insertActivity(1:Activity activity);
84
    void insertActivity(1:Activity activity);
83
 
85
 
84
    // Methods to read agent information
86
    // Methods to read agent information
-
 
87
    list<Agent> getAllAgents();
85
    Agent getAgent(1:i64 agentId);
88
    Agent getAgent(1:i64 agentId);
86
    Agent getAgentByEmailId(1:string agentEmailId);
89
    Agent getAgentByEmailId(1:string agentEmailId);
-
 
90
    void updatePasswordForAgent(1:string agentEmailId, 2:string password);
-
 
91
 
-
 
92
    // Methods to read roles and permissions information
-
 
93
    list<string> getRoleNamesForAgent(1:string agentEmailId);
-
 
94
    list<string> getPermissionsForRoleName(1:string roleName);    
87
}
95
}