eaafe1b572b84fd05d01b9824262eac360f7717a
[motion2.git] / server / services / ami / dialer / 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 _0xd664=['countcongestionretry','countnoanswerretry','countglobal','countnosuchnumberretry','countdropretry','countabandonedretry','countmachineretry','countagentrejectretry','uniqueid','name','calleridnum','number','starttime','responsetime','droptime','endtime','ringtime','holdtime','talktime','membername','connectedlinename','reason','callback','callbackuniqueid','callbackat','recallme','ListId','UserId','VoiceQueueId','CampaignId','originatecalleridnum','originatecalleridname','exports','util','lodash','milliseconds','diff','seconds','scheduledat','type','campaigntype','outbound','queue','countbusyretry'];(function(_0x48dbd3,_0x3e3788){var _0x43aff8=function(_0x1c6af6){while(--_0x1c6af6){_0x48dbd3['push'](_0x48dbd3['shift']());}};_0x43aff8(++_0x3e3788);}(_0xd664,0xa5));var _0x4d66=function(_0x48df0f,_0x388687){_0x48df0f=_0x48df0f-0x0;var _0x38f67b=_0xd664[_0x48df0f];return _0x38f67b;};'use strict';var util=require(_0x4d66('0x0'));var _=require(_0x4d66('0x1'));var moment=require('moment');function getSeconds(_0x493642,_0x57d91a){var _0xa48665=moment(_0x493642)[_0x4d66('0x2')](0x0);var _0x5b5935=moment(_0x57d91a)[_0x4d66('0x2')](0x0);return _0xa48665[_0x4d66('0x3')](_0x5b5935,_0x4d66('0x4'));}function QueueCallerAbandon(_0x3806ad,_0x453a75){this['scheduledat']=_0x3806ad[_0x4d66('0x5')];this[_0x4d66('0x6')]=_0x3806ad[_0x4d66('0x6')];this[_0x4d66('0x7')]=_0x3806ad[_0x4d66('0x6')]===_0x4d66('0x8')?_0x4d66('0x9'):_0x3806ad[_0x4d66('0x6')];this[_0x4d66('0xa')]=_0x3806ad[_0x4d66('0xa')];this['countcongestionretry']=_0x3806ad[_0x4d66('0xb')];this[_0x4d66('0xc')]=_0x3806ad[_0x4d66('0xc')];this[_0x4d66('0xd')]=_0x3806ad[_0x4d66('0xa')]+_0x3806ad[_0x4d66('0xb')]+_0x3806ad[_0x4d66('0xc')]+_0x3806ad[_0x4d66('0xe')]+_0x3806ad[_0x4d66('0xf')]+_0x3806ad[_0x4d66('0x10')]+_0x3806ad[_0x4d66('0x11')]+_0x3806ad[_0x4d66('0x12')];this[_0x4d66('0xe')]=_0x3806ad[_0x4d66('0xe')];this['countdropretry']=_0x3806ad[_0x4d66('0xf')];this['countabandonedretry']=_0x3806ad[_0x4d66('0x10')];this[_0x4d66('0x11')]=_0x3806ad[_0x4d66('0x11')];this['countagentrejectretry']=_0x3806ad[_0x4d66('0x12')];this[_0x4d66('0x13')]=_0x453a75[_0x4d66('0x13')];this['calleridname']=_0x3806ad[_0x4d66('0x14')];this[_0x4d66('0x15')]=_0x3806ad[_0x4d66('0x16')];this['starttime']=_0x3806ad[_0x4d66('0x17')];this[_0x4d66('0x18')]=_0x3806ad[_0x4d66('0x18')];this[_0x4d66('0x19')]=_0x3806ad[_0x4d66('0x19')];this[_0x4d66('0x1a')]=this[_0x4d66('0x19')];this[_0x4d66('0x1b')]=getSeconds(_0x3806ad[_0x4d66('0x18')],_0x3806ad['starttime']);this[_0x4d66('0x1c')]=getSeconds(this[_0x4d66('0x19')],_0x3806ad[_0x4d66('0x18')]);this[_0x4d66('0x1d')]=0x0;this[_0x4d66('0x9')]=_0x453a75['queue'];this[_0x4d66('0x1e')]=_0x453a75[_0x4d66('0x1f')];this[_0x4d66('0x20')]=_0x453a75[_0x4d66('0x20')];this['callback']=_0x3806ad[_0x4d66('0x21')];this[_0x4d66('0x22')]=_0x3806ad[_0x4d66('0x22')];this[_0x4d66('0x23')]=_0x3806ad['callbackat'];this[_0x4d66('0x24')]=_0x3806ad[_0x4d66('0x24')];this['ContactId']=_0x3806ad['ContactId'];this[_0x4d66('0x25')]=_0x3806ad['ListId'];this[_0x4d66('0x26')]=_0x3806ad['UserId'];this['VoiceQueueId']=_0x3806ad[_0x4d66('0x27')];this['CampaignId']=_0x3806ad[_0x4d66('0x28')];this['originatecalleridnum']=_0x3806ad[_0x4d66('0x29')]||'';this[_0x4d66('0x2a')]=_0x3806ad[_0x4d66('0x2a')]||'';}module[_0x4d66('0x2b')]=QueueCallerAbandon;