| Line 1650... |
Line 1650... |
| 1650 |
self.callType="default"
|
1650 |
self.callType="default"
|
| 1651 |
callLaterAccs = self.callLaterAccs
|
1651 |
callLaterAccs = self.callLaterAccs
|
| 1652 |
accsDisposition = self.accsDisposition
|
1652 |
accsDisposition = self.accsDisposition
|
| 1653 |
self.userId = int(jsonReq.get('user_id'))
|
1653 |
self.userId = int(jsonReq.get('user_id'))
|
| 1654 |
try:
|
1654 |
try:
|
| 1655 |
self.user = session.query(UserCrmCallingData).filter_by(user_id=self.userId).first()
|
1655 |
self.user = session.query(UserCrmCallingData).filter_by(user_id=self.userId).filter(UserCrmCallingData.project_id==1).first()
|
| 1656 |
self.callDisposition = jsonReq.get('calldispositiontype')
|
1656 |
self.callDisposition = jsonReq.get('calldispositiontype')
|
| 1657 |
self.callHistoryCrm = CallHistoryCrm()
|
1657 |
self.callHistoryCrm = CallHistoryCrm()
|
| 1658 |
self.callHistoryCrm.agent_id=self.agentId
|
1658 |
self.callHistoryCrm.agent_id=self.agentId
|
| 1659 |
self.callHistoryCrm.project_id = 1
|
1659 |
self.callHistoryCrm.project_id = 1
|
| 1660 |
self.callHistoryCrm.call_disposition = self.callDisposition
|
1660 |
self.callHistoryCrm.call_disposition = self.callDisposition
|
| Line 1818... |
Line 1818... |
| 1818 |
userMasterData.name =getUsername(userId)
|
1818 |
userMasterData.name =getUsername(userId)
|
| 1819 |
userMasterData.project_id = projectId
|
1819 |
userMasterData.project_id = projectId
|
| 1820 |
userMasterData.user_available=0
|
1820 |
userMasterData.user_available=0
|
| 1821 |
userMasterData.contact1 = getUserContactDetails(userId)
|
1821 |
userMasterData.contact1 = getUserContactDetails(userId)
|
| 1822 |
userMasterData.counter = 0
|
1822 |
userMasterData.counter = 0
|
| - |
|
1823 |
userMasterData.retry_count=0
|
| - |
|
1824 |
userMasterData.invalid_retry_count=0
|
| 1823 |
userMasterData.created = datetime.now()
|
1825 |
userMasterData.created = datetime.now()
|
| 1824 |
userMasterData.modified = datetime.now()
|
1826 |
userMasterData.modified = datetime.now()
|
| 1825 |
userMasterData.status = 'new'
|
1827 |
userMasterData.status = 'new'
|
| 1826 |
userMasterData.pincode_servicable = checkPincodeServicable(userId)
|
1828 |
userMasterData.pincode_servicable = checkPincodeServicable(userId)
|
| 1827 |
session.commit()
|
1829 |
session.commit()
|