Built motion from commit 0555bc41.|2.5.41
[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 _0x35c1=['countdropretry','countabandonedretry','countmachineretry','countagentrejectretry','uniqueid','calleridname','name','calleridnum','number','starttime','droptime','endtime','ringtime','responsetime','holdtime','membername','connectedlinename','reason','callback','callbackuniqueid','callbackat','recallme','ContactId','ListId','UserId','CampaignId','originatecalleridnum','originatecalleridname','exports','util','lodash','moment','milliseconds','seconds','scheduledat','type','campaigntype','outbound','queue','countbusyretry','countnoanswerretry','countglobal','countcongestionretry','countnosuchnumberretry'];(function(_0x1d749b,_0x24c0ac){var _0x4ffc7d=function(_0x1f1004){while(--_0x1f1004){_0x1d749b['push'](_0x1d749b['shift']());}};_0x4ffc7d(++_0x24c0ac);}(_0x35c1,0x17d));var _0x135c=function(_0x6b695f,_0x1607cf){_0x6b695f=_0x6b695f-0x0;var _0x39536a=_0x35c1[_0x6b695f];return _0x39536a;};'use strict';var util=require(_0x135c('0x0'));var _=require(_0x135c('0x1'));var moment=require(_0x135c('0x2'));function getSeconds(_0x20a625,_0x464ace){var _0x20aac9=moment(_0x20a625)[_0x135c('0x3')](0x0);var _0x177e81=moment(_0x464ace)[_0x135c('0x3')](0x0);return _0x20aac9['diff'](_0x177e81,_0x135c('0x4'));}function QueueCallerAbandon(_0x5e0a21,_0x13c5ee){this[_0x135c('0x5')]=_0x5e0a21[_0x135c('0x5')];this[_0x135c('0x6')]=_0x5e0a21[_0x135c('0x6')];this[_0x135c('0x7')]=_0x5e0a21[_0x135c('0x6')]===_0x135c('0x8')?_0x135c('0x9'):_0x5e0a21[_0x135c('0x6')];this[_0x135c('0xa')]=_0x5e0a21[_0x135c('0xa')];this['countcongestionretry']=_0x5e0a21['countcongestionretry'];this[_0x135c('0xb')]=_0x5e0a21[_0x135c('0xb')];this[_0x135c('0xc')]=_0x5e0a21[_0x135c('0xa')]+_0x5e0a21[_0x135c('0xd')]+_0x5e0a21[_0x135c('0xb')]+_0x5e0a21[_0x135c('0xe')]+_0x5e0a21[_0x135c('0xf')]+_0x5e0a21[_0x135c('0x10')]+_0x5e0a21[_0x135c('0x11')]+_0x5e0a21[_0x135c('0x12')];this['countnosuchnumberretry']=_0x5e0a21[_0x135c('0xe')];this[_0x135c('0xf')]=_0x5e0a21['countdropretry'];this[_0x135c('0x10')]=_0x5e0a21['countabandonedretry'];this[_0x135c('0x11')]=_0x5e0a21[_0x135c('0x11')];this[_0x135c('0x12')]=_0x5e0a21[_0x135c('0x12')];this[_0x135c('0x13')]=_0x13c5ee[_0x135c('0x13')];this[_0x135c('0x14')]=_0x5e0a21[_0x135c('0x15')];this[_0x135c('0x16')]=_0x5e0a21[_0x135c('0x17')];this[_0x135c('0x18')]=_0x5e0a21['starttime'];this['responsetime']=_0x5e0a21['responsetime'];this[_0x135c('0x19')]=_0x5e0a21['droptime'];this[_0x135c('0x1a')]=this['droptime'];this[_0x135c('0x1b')]=getSeconds(_0x5e0a21[_0x135c('0x1c')],_0x5e0a21['starttime']);this[_0x135c('0x1d')]=getSeconds(this[_0x135c('0x19')],_0x5e0a21[_0x135c('0x1c')]);this['talktime']=0x0;this[_0x135c('0x9')]=_0x13c5ee[_0x135c('0x9')];this[_0x135c('0x1e')]=_0x13c5ee[_0x135c('0x1f')];this[_0x135c('0x20')]=_0x13c5ee[_0x135c('0x20')];this['callback']=_0x5e0a21[_0x135c('0x21')];this[_0x135c('0x22')]=_0x5e0a21[_0x135c('0x22')];this[_0x135c('0x23')]=_0x5e0a21['callbackat'];this[_0x135c('0x24')]=_0x5e0a21[_0x135c('0x24')];this[_0x135c('0x25')]=_0x5e0a21[_0x135c('0x25')];this[_0x135c('0x26')]=_0x5e0a21[_0x135c('0x26')];this['UserId']=_0x5e0a21[_0x135c('0x27')];this['VoiceQueueId']=_0x5e0a21['VoiceQueueId'];this[_0x135c('0x28')]=_0x5e0a21['CampaignId'];this[_0x135c('0x29')]=_0x5e0a21[_0x135c('0x29')]||'';this[_0x135c('0x2a')]=_0x5e0a21[_0x135c('0x2a')]||'';}module[_0x135c('0x2b')]=QueueCallerAbandon;