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