fce670034988a5309b073f1e41260460b94ba987
[motion2.git] / server / services / ami / dialer / models / 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 _0x4202=['VoiceQueueId','CampaignId','originatecalleridnum','originatecalleridname','agiafterat','state','statedesc','../utils','scheduledat','type','campaigntype','outbound','queue','countbusyretry','countcongestionretry','countnoanswerretry','countglobal','countnosuchnumberretry','countdropretry','countmachineretry','countagentrejectretry','countabandonedretry','uniqueid','calleridname','name','calleridnum','number','starttime','responsetime','droptime','dropreason','endtime','getSeconds','holdtime','talktime','membername','connectedlinename','reason','callback','callbackuniqueid','callbackat','recallme','ContactId','ListId','UserId'];(function(_0xb011d6,_0x74d4eb){var _0x1e30f1=function(_0x5009ba){while(--_0x5009ba){_0xb011d6['push'](_0xb011d6['shift']());}};_0x1e30f1(++_0x74d4eb);}(_0x4202,0xe8));var _0x2420=function(_0x3bacf8,_0x315aaa){_0x3bacf8=_0x3bacf8-0x0;var _0x53d999=_0x4202[_0x3bacf8];return _0x53d999;};'use strict';var utils=require(_0x2420('0x0'));function QueueCallerAbandon(_0x34ed4a,_0x361542){this[_0x2420('0x1')]=_0x34ed4a['scheduledat'];this[_0x2420('0x2')]=_0x34ed4a['type'];this[_0x2420('0x3')]=_0x34ed4a[_0x2420('0x2')]===_0x2420('0x4')?_0x2420('0x5'):_0x34ed4a[_0x2420('0x2')];this['countbusyretry']=_0x34ed4a[_0x2420('0x6')];this['countcongestionretry']=_0x34ed4a[_0x2420('0x7')];this['countnoanswerretry']=_0x34ed4a[_0x2420('0x8')];this[_0x2420('0x9')]=_0x34ed4a['countbusyretry']+_0x34ed4a[_0x2420('0x7')]+_0x34ed4a['countnoanswerretry']+_0x34ed4a[_0x2420('0xa')]+_0x34ed4a[_0x2420('0xb')]+_0x34ed4a['countabandonedretry']+_0x34ed4a[_0x2420('0xc')]+_0x34ed4a[_0x2420('0xd')];this[_0x2420('0xa')]=_0x34ed4a[_0x2420('0xa')];this['countdropretry']=_0x34ed4a['countdropretry'];this[_0x2420('0xe')]=_0x34ed4a[_0x2420('0xe')];this['countmachineretry']=_0x34ed4a[_0x2420('0xc')];this[_0x2420('0xd')]=_0x34ed4a[_0x2420('0xd')];this[_0x2420('0xf')]=_0x361542[_0x2420('0xf')];this[_0x2420('0x10')]=_0x34ed4a[_0x2420('0x11')];this[_0x2420('0x12')]=_0x34ed4a[_0x2420('0x13')];this[_0x2420('0x14')]=_0x34ed4a[_0x2420('0x14')];this[_0x2420('0x15')]=_0x34ed4a['responsetime'];this[_0x2420('0x16')]=_0x34ed4a[_0x2420('0x16')];this[_0x2420('0x17')]=_0x34ed4a[_0x2420('0x17')];this[_0x2420('0x18')]=this[_0x2420('0x16')];this['ringtime']=utils[_0x2420('0x19')](_0x34ed4a[_0x2420('0x15')],_0x34ed4a[_0x2420('0x14')]);this[_0x2420('0x1a')]=utils[_0x2420('0x19')](this[_0x2420('0x16')],_0x34ed4a[_0x2420('0x15')]);this[_0x2420('0x1b')]=0x0;this[_0x2420('0x5')]=_0x361542[_0x2420('0x5')];this[_0x2420('0x1c')]=_0x361542[_0x2420('0x1d')];this[_0x2420('0x1e')]=_0x361542[_0x2420('0x1e')];this[_0x2420('0x1f')]=_0x34ed4a[_0x2420('0x1f')];this[_0x2420('0x20')]=_0x34ed4a[_0x2420('0x20')];this[_0x2420('0x21')]=_0x34ed4a[_0x2420('0x21')];this[_0x2420('0x22')]=_0x34ed4a[_0x2420('0x22')];this[_0x2420('0x23')]=_0x34ed4a[_0x2420('0x23')];this[_0x2420('0x24')]=_0x34ed4a['ListId'];this['UserId']=_0x34ed4a[_0x2420('0x25')];this['VoiceQueueId']=_0x34ed4a[_0x2420('0x26')];this[_0x2420('0x27')]=_0x34ed4a[_0x2420('0x27')];this[_0x2420('0x28')]=_0x34ed4a[_0x2420('0x28')]||'';this['originatecalleridname']=_0x34ed4a[_0x2420('0x29')]||'';this[_0x2420('0x2a')]=_0x34ed4a[_0x2420('0x2a')];this[_0x2420('0x2b')]=_0x34ed4a[_0x2420('0x2b')];this['statedesc']=_0x34ed4a[_0x2420('0x2c')];}module['exports']=QueueCallerAbandon;