Subversion Repositories SmartDukaan

Rev

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

Rev 18291 Rev 18295
Line 1656... Line 1656...
1656
                self.callHistoryCrm = CallHistoryCrm()
1656
                self.callHistoryCrm = CallHistoryCrm()
1657
                self.callHistoryCrm.agent_id=self.agentId
1657
                self.callHistoryCrm.agent_id=self.agentId
1658
                self.callHistoryCrm.project_id = 1
1658
                self.callHistoryCrm.project_id = 1
1659
                self.callHistoryCrm.call_disposition = self.callDisposition
1659
                self.callHistoryCrm.call_disposition = self.callDisposition
1660
                self.callHistoryCrm.user_id=self.userId
1660
                self.callHistoryCrm.user_id=self.userId
1661
                self.callHistoryCrm.call_type=self.callType
-
 
1662
                self.callHistoryCrm.duration_sec = int(jsonReq.get("callduration"))
1661
                self.callHistoryCrm.duration_sec = int(jsonReq.get("callduration"))
1663
                self.callHistoryCrm.disposition_comments = jsonReq.get('calldispositioncomments')
1662
                self.callHistoryCrm.disposition_comments = jsonReq.get('calldispositioncomments')
1664
                self.callHistoryCrm.call_time = datetime.strptime(jsonReq.get("calltime"), '%d/%m/%Y %H:%M:%S')
1663
                self.callHistoryCrm.call_time = datetime.strptime(jsonReq.get("calltime"), '%d/%m/%Y %H:%M:%S')
1665
                self.callHistoryCrm.mobile_number = jsonReq.get('number')
1664
                self.callHistoryCrm.mobile_number = jsonReq.get('number')
1666
                
1665