1 // *************************************************************************
3 // * xCALLY Motion - The Omnichannel Contact Center *
4 // * Copyright (c) Xenialab s.r.l. All Rights Reserved *
6 // *************************************************************************
8 // * Email: info@xcally.com *
9 // * Website: https://www.xcally.com *
11 // *************************************************************************
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. *
17 // *************************************************************************
18 var _0xbaf8=['countdropretry','countmachineretry','countagentrejectretry','countnosuchnumberretry','countabandonedretry','calleridname','calleridnum','number','starttime','responsetime','getSeconds','talktime','callback','callbackuniqueid','callbackat','recallme','ContactId','ListId','UserId','VoiceQueueId','CampaignId','originatecalleridnum','originatecalleridname','state','statedesc','exports','../utils','uniqueid','scheduledat','type','campaigntype','queue','countbusyretry','countcongestionretry','countnoanswerretry'];(function(_0x53a965,_0x1af37a){var _0x4243bb=function(_0x2e03e9){while(--_0x2e03e9){_0x53a965['push'](_0x53a965['shift']());}};_0x4243bb(++_0x1af37a);}(_0xbaf8,0x19b));var _0x8baf=function(_0x504691,_0x2d34f4){_0x504691=_0x504691-0x0;var _0x24364c=_0xbaf8[_0x504691];return _0x24364c;};'use strict';var utils=require(_0x8baf('0x0'));function History(_0x70f950){this[_0x8baf('0x1')]=_0x70f950[_0x8baf('0x1')];this[_0x8baf('0x2')]=_0x70f950[_0x8baf('0x2')]||undefined;this[_0x8baf('0x3')]=_0x70f950[_0x8baf('0x3')];this[_0x8baf('0x4')]=_0x70f950[_0x8baf('0x3')]==='outbound'?_0x8baf('0x5'):_0x70f950['type'];this['countbusyretry']=_0x70f950[_0x8baf('0x6')];this[_0x8baf('0x7')]=_0x70f950[_0x8baf('0x7')];this[_0x8baf('0x8')]=_0x70f950[_0x8baf('0x8')];this['countglobal']=_0x70f950[_0x8baf('0x6')]+_0x70f950[_0x8baf('0x7')]+_0x70f950['countnoanswerretry']+_0x70f950['countnosuchnumberretry']+_0x70f950[_0x8baf('0x9')]+_0x70f950['countabandonedretry']+_0x70f950[_0x8baf('0xa')]+_0x70f950[_0x8baf('0xb')];this['countnosuchnumberretry']=_0x70f950[_0x8baf('0xc')];this['countdropretry']=_0x70f950['countdropretry'];this[_0x8baf('0xd')]=_0x70f950[_0x8baf('0xd')];this[_0x8baf('0xa')]=_0x70f950[_0x8baf('0xa')];this[_0x8baf('0xb')]=_0x70f950[_0x8baf('0xb')];this[_0x8baf('0x5')]=_0x70f950[_0x8baf('0x5')];this[_0x8baf('0xe')]=_0x70f950['name'];this[_0x8baf('0xf')]=_0x70f950[_0x8baf('0x10')];this[_0x8baf('0x11')]=_0x70f950[_0x8baf('0x11')];this[_0x8baf('0x12')]=_0x70f950['responsetime'];this['endtime']=_0x70f950[_0x8baf('0x12')];this['ringtime']=utils[_0x8baf('0x13')](_0x70f950[_0x8baf('0x12')],_0x70f950[_0x8baf('0x11')]);this['holdtime']=0x0;this[_0x8baf('0x14')]=0x0;this['callback']=_0x70f950[_0x8baf('0x15')];this['callbackuniqueid']=_0x70f950[_0x8baf('0x16')];this['callbackat']=_0x70f950[_0x8baf('0x17')];this[_0x8baf('0x18')]=_0x70f950[_0x8baf('0x18')];this[_0x8baf('0x19')]=_0x70f950[_0x8baf('0x19')];this[_0x8baf('0x1a')]=_0x70f950[_0x8baf('0x1a')];this[_0x8baf('0x1b')]=_0x70f950[_0x8baf('0x1b')];this['VoiceQueueId']=_0x70f950[_0x8baf('0x1c')];this[_0x8baf('0x1d')]=_0x70f950['CampaignId'];this[_0x8baf('0x1e')]=_0x70f950[_0x8baf('0x1e')]||'';this[_0x8baf('0x1f')]=_0x70f950['originatecalleridname']||'';this[_0x8baf('0x20')]=_0x70f950[_0x8baf('0x20')];this[_0x8baf('0x21')]=_0x70f950[_0x8baf('0x21')];}module[_0x8baf('0x22')]=History;