Built motion from commit (unavailable).|2.5.14
[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 _0xf325=['countnosuchnumberretry','countdropretry','countmachineretry','countagentrejectretry','countabandonedretry','uniqueid','calleridname','name','calleridnum','number','starttime','responsetime','droptime','ringtime','talktime','reason','callback','callbackuniqueid','callbackat','recallme','ContactId','ListId','UserId','VoiceQueueId','CampaignId','originatecalleridnum','originatecalleridname','lodash','moment','milliseconds','diff','seconds','scheduledat','type','campaigntype','outbound','queue','countbusyretry','countcongestionretry','countnoanswerretry','countglobal'];(function(_0x5c936a,_0xe29226){var _0x58a8a0=function(_0x5f36fd){while(--_0x5f36fd){_0x5c936a['push'](_0x5c936a['shift']());}};_0x58a8a0(++_0xe29226);}(_0xf325,0x1b5));var _0x5f32=function(_0x5d2803,_0xf375bd){_0x5d2803=_0x5d2803-0x0;var _0xdcad2c=_0xf325[_0x5d2803];return _0xdcad2c;};'use strict';var util=require('util');var _=require(_0x5f32('0x0'));var moment=require(_0x5f32('0x1'));function getSeconds(_0x589cdc,_0x34c5e4){var _0x1104b0=moment(_0x589cdc)[_0x5f32('0x2')](0x0);var _0x8f4712=moment(_0x34c5e4)[_0x5f32('0x2')](0x0);return _0x1104b0[_0x5f32('0x3')](_0x8f4712,_0x5f32('0x4'));}function QueueCallerAbandon(_0x3bcc1f,_0x399257){this[_0x5f32('0x5')]=_0x3bcc1f[_0x5f32('0x5')];this['type']=_0x3bcc1f[_0x5f32('0x6')];this[_0x5f32('0x7')]=_0x3bcc1f[_0x5f32('0x6')]===_0x5f32('0x8')?_0x5f32('0x9'):_0x3bcc1f['type'];this[_0x5f32('0xa')]=_0x3bcc1f[_0x5f32('0xa')];this[_0x5f32('0xb')]=_0x3bcc1f['countcongestionretry'];this['countnoanswerretry']=_0x3bcc1f[_0x5f32('0xc')];this[_0x5f32('0xd')]=_0x3bcc1f[_0x5f32('0xa')]+_0x3bcc1f[_0x5f32('0xb')]+_0x3bcc1f[_0x5f32('0xc')]+_0x3bcc1f[_0x5f32('0xe')]+_0x3bcc1f[_0x5f32('0xf')]+_0x3bcc1f['countabandonedretry']+_0x3bcc1f[_0x5f32('0x10')]+_0x3bcc1f[_0x5f32('0x11')];this[_0x5f32('0xe')]=_0x3bcc1f[_0x5f32('0xe')];this[_0x5f32('0xf')]=_0x3bcc1f[_0x5f32('0xf')];this[_0x5f32('0x12')]=_0x3bcc1f[_0x5f32('0x12')];this[_0x5f32('0x10')]=_0x3bcc1f[_0x5f32('0x10')];this[_0x5f32('0x11')]=_0x3bcc1f[_0x5f32('0x11')];this[_0x5f32('0x13')]=_0x399257[_0x5f32('0x13')];this[_0x5f32('0x14')]=_0x3bcc1f[_0x5f32('0x15')];this[_0x5f32('0x16')]=_0x3bcc1f[_0x5f32('0x17')];this[_0x5f32('0x18')]=_0x3bcc1f[_0x5f32('0x18')];this[_0x5f32('0x19')]=_0x3bcc1f[_0x5f32('0x19')];this[_0x5f32('0x1a')]=_0x3bcc1f[_0x5f32('0x1a')];this['endtime']=this['droptime'];this[_0x5f32('0x1b')]=getSeconds(_0x3bcc1f[_0x5f32('0x19')],_0x3bcc1f['starttime']);this['holdtime']=getSeconds(this[_0x5f32('0x1a')],_0x3bcc1f['responsetime']);this[_0x5f32('0x1c')]=0x0;this[_0x5f32('0x9')]=_0x399257[_0x5f32('0x9')];this['membername']=_0x399257['connectedlinename'];this['reason']=_0x399257[_0x5f32('0x1d')];this[_0x5f32('0x1e')]=_0x3bcc1f[_0x5f32('0x1e')];this[_0x5f32('0x1f')]=_0x3bcc1f[_0x5f32('0x1f')];this[_0x5f32('0x20')]=_0x3bcc1f['callbackat'];this[_0x5f32('0x21')]=_0x3bcc1f[_0x5f32('0x21')];this['ContactId']=_0x3bcc1f[_0x5f32('0x22')];this[_0x5f32('0x23')]=_0x3bcc1f[_0x5f32('0x23')];this[_0x5f32('0x24')]=_0x3bcc1f[_0x5f32('0x24')];this[_0x5f32('0x25')]=_0x3bcc1f[_0x5f32('0x25')];this[_0x5f32('0x26')]=_0x3bcc1f[_0x5f32('0x26')];this[_0x5f32('0x27')]=_0x3bcc1f[_0x5f32('0x27')]||'';this[_0x5f32('0x28')]=_0x3bcc1f[_0x5f32('0x28')]||'';}module['exports']=QueueCallerAbandon;