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 _0x4297=['originatecalleridname','exports','moment','milliseconds','uniqueid','scheduledat','type','campaigntype','countbusyretry','countcongestionretry','countnoanswerretry','queue','name','calleridnum','number','starttime','responsetime','endtime','ringtime','talktime','callback','callbackuniqueid','callbackat','recallme','ContactId','UserId','CampaignId','originatecalleridnum'];(function(_0x60df74,_0x458e29){var _0x5ee872=function(_0x356888){while(--_0x356888){_0x60df74['push'](_0x60df74['shift']());}};_0x5ee872(++_0x458e29);}(_0x4297,0xfe));var _0x7429=function(_0x17e735,_0x328f40){_0x17e735=_0x17e735-0x0;var _0x1824d6=_0x4297[_0x17e735];return _0x1824d6;};'use strict';var util=require('util');var _=require('lodash');var moment=require(_0x7429('0x0'));function getSeconds(_0xb903e7,_0x5840c3){var _0x1401df=moment(_0xb903e7)[_0x7429('0x1')](0x0);var _0x24ea16=moment(_0x5840c3)[_0x7429('0x1')](0x0);return _0x1401df['diff'](_0x24ea16,'seconds');}function History(_0x30d64d){this[_0x7429('0x2')]=_0x30d64d[_0x7429('0x2')];this[_0x7429('0x3')]=_0x30d64d[_0x7429('0x3')]||undefined;this[_0x7429('0x4')]=_0x30d64d[_0x7429('0x4')];this[_0x7429('0x5')]=_0x30d64d[_0x7429('0x4')]==='outbound'?'queue':_0x30d64d[_0x7429('0x4')];this[_0x7429('0x6')]=_0x30d64d[_0x7429('0x6')];this[_0x7429('0x7')]=_0x30d64d[_0x7429('0x7')];this[_0x7429('0x8')]=_0x30d64d['countnoanswerretry'];this['countglobal']=_0x30d64d[_0x7429('0x6')]+_0x30d64d[_0x7429('0x7')]+_0x30d64d[_0x7429('0x8')];this[_0x7429('0x9')]=_0x30d64d[_0x7429('0x9')];this['calleridname']=_0x30d64d[_0x7429('0xa')];this[_0x7429('0xb')]=_0x30d64d[_0x7429('0xc')];this[_0x7429('0xd')]=_0x30d64d[_0x7429('0xd')];this[_0x7429('0xe')]=_0x30d64d['responsetime'];this[_0x7429('0xf')]=_0x30d64d['responsetime'];this[_0x7429('0x10')]=getSeconds(_0x30d64d['responsetime'],_0x30d64d['starttime']);this['holdtime']=0x0;this[_0x7429('0x11')]=0x0;this[_0x7429('0x12')]=_0x30d64d[_0x7429('0x12')];this[_0x7429('0x13')]=_0x30d64d[_0x7429('0x13')];this['callbackat']=_0x30d64d[_0x7429('0x14')];this[_0x7429('0x15')]=_0x30d64d['recallme'];this[_0x7429('0x16')]=_0x30d64d[_0x7429('0x16')];this['ListId']=_0x30d64d['ListId'];this[_0x7429('0x17')]=_0x30d64d['UserId'];this['VoiceQueueId']=_0x30d64d['VoiceQueueId'];this[_0x7429('0x18')]=_0x30d64d[_0x7429('0x18')];this['originatecalleridnum']=_0x30d64d[_0x7429('0x19')]||'';this[_0x7429('0x1a')]=_0x30d64d[_0x7429('0x1a')]||'';}module[_0x7429('0x1b')]=History;