4a2b8c9316743e55dadfe7ac8d6bb982832638ac
[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 _0x57ef=['ListId','UserId','VoiceQueueId','CampaignId','originatecalleridnum','originatecalleridname','agiafterat','state','statedesc','exports','scheduledat','type','campaigntype','outbound','queue','countbusyretry','countcongestionretry','countnoanswerretry','countnosuchnumberretry','countdropretry','countabandonedretry','countmachineretry','countagentrejectretry','uniqueid','calleridnum','number','starttime','responsetime','droptime','dropreason','endtime','ringtime','getSeconds','talktime','membername','connectedlinename','reason','callback','callbackuniqueid','callbackat','recallme','ContactId'];(function(_0x284bc3,_0x22dffe){var _0x41ac81=function(_0x47031f){while(--_0x47031f){_0x284bc3['push'](_0x284bc3['shift']());}};_0x41ac81(++_0x22dffe);}(_0x57ef,0x106));var _0xf57e=function(_0x24d2ba,_0x1e74ca){_0x24d2ba=_0x24d2ba-0x0;var _0x5b9085=_0x57ef[_0x24d2ba];return _0x5b9085;};'use strict';var utils=require('../utils');function QueueCallerAbandon(_0x37144a,_0x330421){this[_0xf57e('0x0')]=_0x37144a[_0xf57e('0x0')];this[_0xf57e('0x1')]=_0x37144a[_0xf57e('0x1')];this[_0xf57e('0x2')]=_0x37144a[_0xf57e('0x1')]===_0xf57e('0x3')?_0xf57e('0x4'):_0x37144a[_0xf57e('0x1')];this[_0xf57e('0x5')]=_0x37144a[_0xf57e('0x5')];this['countcongestionretry']=_0x37144a[_0xf57e('0x6')];this[_0xf57e('0x7')]=_0x37144a[_0xf57e('0x7')];this['countglobal']=_0x37144a[_0xf57e('0x5')]+_0x37144a['countcongestionretry']+_0x37144a[_0xf57e('0x7')]+_0x37144a['countnosuchnumberretry']+_0x37144a['countdropretry']+_0x37144a['countabandonedretry']+_0x37144a['countmachineretry']+_0x37144a['countagentrejectretry'];this['countnosuchnumberretry']=_0x37144a[_0xf57e('0x8')];this[_0xf57e('0x9')]=_0x37144a['countdropretry'];this[_0xf57e('0xa')]=_0x37144a['countabandonedretry'];this[_0xf57e('0xb')]=_0x37144a['countmachineretry'];this['countagentrejectretry']=_0x37144a[_0xf57e('0xc')];this[_0xf57e('0xd')]=_0x330421[_0xf57e('0xd')];this['calleridname']=_0x37144a['name'];this[_0xf57e('0xe')]=_0x37144a[_0xf57e('0xf')];this['starttime']=_0x37144a[_0xf57e('0x10')];this[_0xf57e('0x11')]=_0x37144a[_0xf57e('0x11')];this[_0xf57e('0x12')]=_0x37144a[_0xf57e('0x12')];this[_0xf57e('0x13')]=_0x37144a[_0xf57e('0x13')];this[_0xf57e('0x14')]=this[_0xf57e('0x12')];this[_0xf57e('0x15')]=utils[_0xf57e('0x16')](_0x37144a[_0xf57e('0x11')],_0x37144a['starttime']);this['holdtime']=utils[_0xf57e('0x16')](this[_0xf57e('0x12')],_0x37144a[_0xf57e('0x11')]);this[_0xf57e('0x17')]=0x0;this[_0xf57e('0x4')]=_0x330421[_0xf57e('0x4')];this[_0xf57e('0x18')]=_0x330421[_0xf57e('0x19')];this[_0xf57e('0x1a')]=_0x330421[_0xf57e('0x1a')];this[_0xf57e('0x1b')]=_0x37144a['callback'];this[_0xf57e('0x1c')]=_0x37144a['callbackuniqueid'];this[_0xf57e('0x1d')]=_0x37144a['callbackat'];this['recallme']=_0x37144a[_0xf57e('0x1e')];this[_0xf57e('0x1f')]=_0x37144a[_0xf57e('0x1f')];this[_0xf57e('0x20')]=_0x37144a['ListId'];this[_0xf57e('0x21')]=_0x37144a[_0xf57e('0x21')];this[_0xf57e('0x22')]=_0x37144a['VoiceQueueId'];this['CampaignId']=_0x37144a[_0xf57e('0x23')];this[_0xf57e('0x24')]=_0x37144a[_0xf57e('0x24')]||'';this[_0xf57e('0x25')]=_0x37144a[_0xf57e('0x25')]||'';this[_0xf57e('0x26')]=_0x37144a['agiafterat'];this[_0xf57e('0x27')]=_0x37144a[_0xf57e('0x27')];this[_0xf57e('0x28')]=_0x37144a['statedesc'];}module[_0xf57e('0x29')]=QueueCallerAbandon;