8a1bba42e0d1caa7d3d730787d891c2bf34f4c2b
[motion2.git] / server / services / ami / dialer / models / queueCallerAbandon.js
1 // *************************************************************************
2 // *                                                                       *
3 // * xCALLY Motion -  The Omnichannel Contact Center                       *
4 // * Copyright (c) Xenialab s.r.l. All Rights Reserved                     *
5 // *                                                                       *
6 // *************************************************************************
7 // *                                                                       *
8 // * Email: info@xcally.com                                                *
9 // * Website: https://www.xcally.com                                       *
10 // *                                                                       *
11 // *************************************************************************
12 // *                                                                       *
13 // * The SOFTWARE PRODUCT is protected by copyright laws and international *
14 // * copyright treaties, as well as other intellectual property laws and   *
15 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                         *
16 // *                                                                       *
17 // *************************************************************************
18 var _0xfe42=['countdropretry','countabandonedretry','countagentrejectretry','countmachineretry','uniqueid','name','calleridnum','number','starttime','responsetime','droptime','dropreason','ringtime','getSeconds','holdtime','reason','callback','callbackuniqueid','callbackat','recallme','ContactId','ListId','UserId','VoiceQueueId','CampaignId','originatecalleridnum','originatecalleridname','agiafterat','state','statedesc','exports','scheduledat','type','campaigntype','outbound','queue','countbusyretry','countcongestionretry','countnoanswerretry','countnosuchnumberretry'];(function(_0x131916,_0x8eb089){var _0x283e61=function(_0x285d52){while(--_0x285d52){_0x131916['push'](_0x131916['shift']());}};_0x283e61(++_0x8eb089);}(_0xfe42,0x97));var _0x2fe4=function(_0x4183b1,_0x4698c6){_0x4183b1=_0x4183b1-0x0;var _0x56d716=_0xfe42[_0x4183b1];return _0x56d716;};'use strict';var utils=require('../utils');function QueueCallerAbandon(_0x1b9e95,_0x46392e){this[_0x2fe4('0x0')]=_0x1b9e95['scheduledat'];this[_0x2fe4('0x1')]=_0x1b9e95[_0x2fe4('0x1')];this[_0x2fe4('0x2')]=_0x1b9e95[_0x2fe4('0x1')]===_0x2fe4('0x3')?_0x2fe4('0x4'):_0x1b9e95[_0x2fe4('0x1')];this['countbusyretry']=_0x1b9e95[_0x2fe4('0x5')];this[_0x2fe4('0x6')]=_0x1b9e95['countcongestionretry'];this['countnoanswerretry']=_0x1b9e95['countnoanswerretry'];this['countglobal']=_0x1b9e95[_0x2fe4('0x5')]+_0x1b9e95[_0x2fe4('0x6')]+_0x1b9e95[_0x2fe4('0x7')]+_0x1b9e95[_0x2fe4('0x8')]+_0x1b9e95[_0x2fe4('0x9')]+_0x1b9e95[_0x2fe4('0xa')]+_0x1b9e95['countmachineretry']+_0x1b9e95[_0x2fe4('0xb')];this[_0x2fe4('0x8')]=_0x1b9e95[_0x2fe4('0x8')];this[_0x2fe4('0x9')]=_0x1b9e95[_0x2fe4('0x9')];this[_0x2fe4('0xa')]=_0x1b9e95[_0x2fe4('0xa')];this[_0x2fe4('0xc')]=_0x1b9e95[_0x2fe4('0xc')];this[_0x2fe4('0xb')]=_0x1b9e95[_0x2fe4('0xb')];this[_0x2fe4('0xd')]=_0x46392e['uniqueid'];this['calleridname']=_0x1b9e95[_0x2fe4('0xe')];this[_0x2fe4('0xf')]=_0x1b9e95[_0x2fe4('0x10')];this[_0x2fe4('0x11')]=_0x1b9e95[_0x2fe4('0x11')];this[_0x2fe4('0x12')]=_0x1b9e95[_0x2fe4('0x12')];this[_0x2fe4('0x13')]=_0x1b9e95['droptime'];this[_0x2fe4('0x14')]=_0x1b9e95['dropreason'];this['endtime']=this[_0x2fe4('0x13')];this[_0x2fe4('0x15')]=utils[_0x2fe4('0x16')](_0x1b9e95[_0x2fe4('0x12')],_0x1b9e95[_0x2fe4('0x11')]);this[_0x2fe4('0x17')]=utils[_0x2fe4('0x16')](this[_0x2fe4('0x13')],_0x1b9e95['responsetime']);this['talktime']=0x0;this[_0x2fe4('0x4')]=_0x46392e[_0x2fe4('0x4')];this['membername']=_0x46392e['connectedlinename'];this[_0x2fe4('0x18')]=_0x46392e[_0x2fe4('0x18')];this[_0x2fe4('0x19')]=_0x1b9e95[_0x2fe4('0x19')];this[_0x2fe4('0x1a')]=_0x1b9e95['callbackuniqueid'];this[_0x2fe4('0x1b')]=_0x1b9e95[_0x2fe4('0x1b')];this[_0x2fe4('0x1c')]=_0x1b9e95[_0x2fe4('0x1c')];this[_0x2fe4('0x1d')]=_0x1b9e95[_0x2fe4('0x1d')];this['ListId']=_0x1b9e95[_0x2fe4('0x1e')];this[_0x2fe4('0x1f')]=_0x1b9e95[_0x2fe4('0x1f')];this[_0x2fe4('0x20')]=_0x1b9e95[_0x2fe4('0x20')];this[_0x2fe4('0x21')]=_0x1b9e95[_0x2fe4('0x21')];this['originatecalleridnum']=_0x1b9e95[_0x2fe4('0x22')]||'';this[_0x2fe4('0x23')]=_0x1b9e95[_0x2fe4('0x23')]||'';this[_0x2fe4('0x24')]=_0x1b9e95[_0x2fe4('0x24')];this[_0x2fe4('0x25')]=_0x1b9e95['state'];this[_0x2fe4('0x26')]=_0x1b9e95[_0x2fe4('0x26')];}module[_0x2fe4('0x27')]=QueueCallerAbandon;