d0594dc0c2b2c4e0f19531e9bcc98e398b332705
[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 _0xec09=['countagentrejectretry','countdropretry','calleridname','name','calleridnum','number','starttime','responsetime','droptime','dropreason','endtime','ringtime','getSeconds','holdtime','talktime','queue','membername','reason','callback','callbackuniqueid','callbackat','recallme','ContactId','ListId','UserId','VoiceQueueId','CampaignId','originatecalleridnum','originatecalleridname','agiafterat','state','statedesc','exports','../utils','scheduledat','type','countbusyretry','countcongestionretry','countnoanswerretry','countglobal','countnosuchnumberretry','countabandonedretry','countmachineretry'];(function(_0x32ae06,_0xfca4f6){var _0x4a6898=function(_0x3a952a){while(--_0x3a952a){_0x32ae06['push'](_0x32ae06['shift']());}};_0x4a6898(++_0xfca4f6);}(_0xec09,0x1cf));var _0x9ec0=function(_0x2f33ed,_0x5c9be8){_0x2f33ed=_0x2f33ed-0x0;var _0x594bf2=_0xec09[_0x2f33ed];return _0x594bf2;};'use strict';var utils=require(_0x9ec0('0x0'));function QueueCallerAbandon(_0x184965,_0x1c844a){this[_0x9ec0('0x1')]=_0x184965['scheduledat'];this[_0x9ec0('0x2')]=_0x184965[_0x9ec0('0x2')];this['campaigntype']=_0x184965[_0x9ec0('0x2')]==='outbound'?'queue':_0x184965[_0x9ec0('0x2')];this[_0x9ec0('0x3')]=_0x184965['countbusyretry'];this['countcongestionretry']=_0x184965[_0x9ec0('0x4')];this[_0x9ec0('0x5')]=_0x184965[_0x9ec0('0x5')];this[_0x9ec0('0x6')]=_0x184965[_0x9ec0('0x3')]+_0x184965['countcongestionretry']+_0x184965[_0x9ec0('0x5')]+_0x184965[_0x9ec0('0x7')]+_0x184965['countdropretry']+_0x184965[_0x9ec0('0x8')]+_0x184965[_0x9ec0('0x9')]+_0x184965[_0x9ec0('0xa')];this['countnosuchnumberretry']=_0x184965['countnosuchnumberretry'];this[_0x9ec0('0xb')]=_0x184965[_0x9ec0('0xb')];this['countabandonedretry']=_0x184965['countabandonedretry'];this['countmachineretry']=_0x184965[_0x9ec0('0x9')];this[_0x9ec0('0xa')]=_0x184965[_0x9ec0('0xa')];this['uniqueid']=_0x1c844a['uniqueid'];this[_0x9ec0('0xc')]=_0x184965[_0x9ec0('0xd')];this[_0x9ec0('0xe')]=_0x184965[_0x9ec0('0xf')];this[_0x9ec0('0x10')]=_0x184965['starttime'];this[_0x9ec0('0x11')]=_0x184965['responsetime'];this[_0x9ec0('0x12')]=_0x184965[_0x9ec0('0x12')];this['dropreason']=_0x184965[_0x9ec0('0x13')];this[_0x9ec0('0x14')]=this[_0x9ec0('0x12')];this[_0x9ec0('0x15')]=utils[_0x9ec0('0x16')](_0x184965[_0x9ec0('0x11')],_0x184965[_0x9ec0('0x10')]);this[_0x9ec0('0x17')]=utils[_0x9ec0('0x16')](this[_0x9ec0('0x12')],_0x184965[_0x9ec0('0x11')]);this[_0x9ec0('0x18')]=0x0;this['queue']=_0x1c844a[_0x9ec0('0x19')];this[_0x9ec0('0x1a')]=_0x1c844a['connectedlinename'];this[_0x9ec0('0x1b')]=_0x1c844a[_0x9ec0('0x1b')];this[_0x9ec0('0x1c')]=_0x184965[_0x9ec0('0x1c')];this[_0x9ec0('0x1d')]=_0x184965[_0x9ec0('0x1d')];this[_0x9ec0('0x1e')]=_0x184965['callbackat'];this['recallme']=_0x184965[_0x9ec0('0x1f')];this[_0x9ec0('0x20')]=_0x184965[_0x9ec0('0x20')];this[_0x9ec0('0x21')]=_0x184965[_0x9ec0('0x21')];this[_0x9ec0('0x22')]=_0x184965[_0x9ec0('0x22')];this[_0x9ec0('0x23')]=_0x184965[_0x9ec0('0x23')];this[_0x9ec0('0x24')]=_0x184965[_0x9ec0('0x24')];this[_0x9ec0('0x25')]=_0x184965[_0x9ec0('0x25')]||'';this[_0x9ec0('0x26')]=_0x184965['originatecalleridname']||'';this[_0x9ec0('0x27')]=_0x184965[_0x9ec0('0x27')];this[_0x9ec0('0x28')]=_0x184965['state'];this[_0x9ec0('0x29')]=_0x184965['statedesc'];}module[_0x9ec0('0x2a')]=QueueCallerAbandon;