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 _0x7cb3=['diff','seconds','uniqueid','scheduledat','type','campaigntype','outbound','countbusyretry','countcongestionretry','countnoanswerretry','countglobal','countnosuchnumberretry','countdropretry','countabandonedretry','countagentrejectretry','countmachineretry','queue','calleridname','calleridnum','starttime','responsetime','endtime','ringtime','holdtime','talktime','callback','callbackuniqueid','callbackat','recallme','ContactId','ListId','VoiceQueueId','CampaignId','originatecalleridnum','originatecalleridname','exports','util','moment','milliseconds'];(function(_0x12f9e3,_0x3fadc1){var _0x2de0c8=function(_0x31b5c5){while(--_0x31b5c5){_0x12f9e3['push'](_0x12f9e3['shift']());}};_0x2de0c8(++_0x3fadc1);}(_0x7cb3,0x1aa));var _0x37cb=function(_0x48d810,_0x352fc9){_0x48d810=_0x48d810-0x0;var _0x468b4f=_0x7cb3[_0x48d810];return _0x468b4f;};'use strict';var util=require(_0x37cb('0x0'));var _=require('lodash');var moment=require(_0x37cb('0x1'));function getSeconds(_0x143c8a,_0x208837){var _0x23bb20=moment(_0x143c8a)[_0x37cb('0x2')](0x0);var _0x59ab9c=moment(_0x208837)[_0x37cb('0x2')](0x0);return _0x23bb20[_0x37cb('0x3')](_0x59ab9c,_0x37cb('0x4'));}function Final(_0x3f0c13){this['uniqueid']=_0x3f0c13[_0x37cb('0x5')];this[_0x37cb('0x6')]=_0x3f0c13[_0x37cb('0x6')];this[_0x37cb('0x7')]=_0x3f0c13[_0x37cb('0x7')];this[_0x37cb('0x8')]=_0x3f0c13[_0x37cb('0x7')]===_0x37cb('0x9')?'queue':_0x3f0c13[_0x37cb('0x7')];this[_0x37cb('0xa')]=_0x3f0c13[_0x37cb('0xa')];this['countcongestionretry']=_0x3f0c13[_0x37cb('0xb')];this[_0x37cb('0xc')]=_0x3f0c13[_0x37cb('0xc')];this[_0x37cb('0xd')]=_0x3f0c13['countbusyretry']+_0x3f0c13[_0x37cb('0xb')]+_0x3f0c13[_0x37cb('0xc')]+_0x3f0c13[_0x37cb('0xe')]+_0x3f0c13[_0x37cb('0xf')]+_0x3f0c13[_0x37cb('0x10')]+_0x3f0c13['countmachineretry']+_0x3f0c13[_0x37cb('0x11')];this[_0x37cb('0xe')]=_0x3f0c13['countnosuchnumberretry'];this[_0x37cb('0xf')]=_0x3f0c13['countdropretry'];this['countabandonedretry']=_0x3f0c13[_0x37cb('0x10')];this['countmachineretry']=_0x3f0c13[_0x37cb('0x12')];this['countagentrejectretry']=_0x3f0c13['countagentrejectretry'];this[_0x37cb('0x13')]=_0x3f0c13[_0x37cb('0x13')];this[_0x37cb('0x14')]=_0x3f0c13[_0x37cb('0x14')];this['calleridnum']=_0x3f0c13[_0x37cb('0x15')];this['starttime']=_0x3f0c13[_0x37cb('0x16')];this[_0x37cb('0x17')]=_0x3f0c13['responsetime'];this[_0x37cb('0x18')]=_0x3f0c13[_0x37cb('0x17')];this[_0x37cb('0x19')]=_0x3f0c13['ringtime']||0x0;this[_0x37cb('0x1a')]=_0x3f0c13[_0x37cb('0x1a')]||0x0;this[_0x37cb('0x1b')]=_0x3f0c13[_0x37cb('0x1b')]||0x0;this['callback']=_0x3f0c13[_0x37cb('0x1c')];this[_0x37cb('0x1d')]=_0x3f0c13[_0x37cb('0x1d')];this[_0x37cb('0x1e')]=_0x3f0c13[_0x37cb('0x1e')];this[_0x37cb('0x1f')]=_0x3f0c13[_0x37cb('0x1f')];this[_0x37cb('0x20')]=_0x3f0c13[_0x37cb('0x20')];this[_0x37cb('0x21')]=_0x3f0c13[_0x37cb('0x21')];this['UserId']=_0x3f0c13['UserId'];this[_0x37cb('0x22')]=_0x3f0c13['VoiceQueueId'];this[_0x37cb('0x23')]=_0x3f0c13['CampaignId'];this[_0x37cb('0x24')]=_0x3f0c13[_0x37cb('0x24')]||'';this[_0x37cb('0x25')]=_0x3f0c13[_0x37cb('0x25')]||'';}module[_0x37cb('0x26')]=Final;