Built motion from commit bab6f49e.|2.6.17
[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 _0x3b0b=['recallme','ContactId','ListId','UserId','VoiceQueueId','CampaignId','originatecalleridnum','originatecalleridname','agiafterat','state','statedesc','exports','scheduledat','type','campaigntype','outbound','countbusyretry','countcongestionretry','countnoanswerretry','countdropretry','countabandonedretry','countmachineretry','countnosuchnumberretry','countagentrejectretry','uniqueid','calleridname','name','starttime','responsetime','droptime','dropreason','endtime','ringtime','getSeconds','queue','membername','connectedlinename','reason','callback','callbackuniqueid'];(function(_0x1822b7,_0x564a8b){var _0x2cb3a7=function(_0x531b62){while(--_0x531b62){_0x1822b7['push'](_0x1822b7['shift']());}};_0x2cb3a7(++_0x564a8b);}(_0x3b0b,0x14c));var _0xb3b0=function(_0x14add3,_0x13ce8d){_0x14add3=_0x14add3-0x0;var _0x4a174f=_0x3b0b[_0x14add3];return _0x4a174f;};'use strict';var utils=require('../utils');function QueueCallerAbandon(_0x12223f,_0x21c13a){this['scheduledat']=_0x12223f[_0xb3b0('0x0')];this[_0xb3b0('0x1')]=_0x12223f[_0xb3b0('0x1')];this[_0xb3b0('0x2')]=_0x12223f[_0xb3b0('0x1')]===_0xb3b0('0x3')?'queue':_0x12223f[_0xb3b0('0x1')];this[_0xb3b0('0x4')]=_0x12223f[_0xb3b0('0x4')];this['countcongestionretry']=_0x12223f[_0xb3b0('0x5')];this[_0xb3b0('0x6')]=_0x12223f[_0xb3b0('0x6')];this['countglobal']=_0x12223f[_0xb3b0('0x4')]+_0x12223f[_0xb3b0('0x5')]+_0x12223f['countnoanswerretry']+_0x12223f['countnosuchnumberretry']+_0x12223f[_0xb3b0('0x7')]+_0x12223f[_0xb3b0('0x8')]+_0x12223f[_0xb3b0('0x9')]+_0x12223f['countagentrejectretry'];this[_0xb3b0('0xa')]=_0x12223f[_0xb3b0('0xa')];this[_0xb3b0('0x7')]=_0x12223f[_0xb3b0('0x7')];this[_0xb3b0('0x8')]=_0x12223f['countabandonedretry'];this['countmachineretry']=_0x12223f['countmachineretry'];this[_0xb3b0('0xb')]=_0x12223f[_0xb3b0('0xb')];this['uniqueid']=_0x21c13a[_0xb3b0('0xc')];this[_0xb3b0('0xd')]=_0x12223f[_0xb3b0('0xe')];this['calleridnum']=_0x12223f['number'];this[_0xb3b0('0xf')]=_0x12223f[_0xb3b0('0xf')];this[_0xb3b0('0x10')]=_0x12223f[_0xb3b0('0x10')];this[_0xb3b0('0x11')]=_0x12223f[_0xb3b0('0x11')];this[_0xb3b0('0x12')]=_0x12223f[_0xb3b0('0x12')];this[_0xb3b0('0x13')]=this[_0xb3b0('0x11')];this[_0xb3b0('0x14')]=utils[_0xb3b0('0x15')](_0x12223f[_0xb3b0('0x10')],_0x12223f[_0xb3b0('0xf')]);this['holdtime']=utils['getSeconds'](this['droptime'],_0x12223f[_0xb3b0('0x10')]);this['talktime']=0x0;this[_0xb3b0('0x16')]=_0x21c13a[_0xb3b0('0x16')];this[_0xb3b0('0x17')]=_0x21c13a[_0xb3b0('0x18')];this[_0xb3b0('0x19')]=_0x21c13a[_0xb3b0('0x19')];this[_0xb3b0('0x1a')]=_0x12223f[_0xb3b0('0x1a')];this[_0xb3b0('0x1b')]=_0x12223f['callbackuniqueid'];this['callbackat']=_0x12223f['callbackat'];this[_0xb3b0('0x1c')]=_0x12223f[_0xb3b0('0x1c')];this[_0xb3b0('0x1d')]=_0x12223f[_0xb3b0('0x1d')];this['ListId']=_0x12223f[_0xb3b0('0x1e')];this[_0xb3b0('0x1f')]=_0x12223f[_0xb3b0('0x1f')];this[_0xb3b0('0x20')]=_0x12223f[_0xb3b0('0x20')];this[_0xb3b0('0x21')]=_0x12223f['CampaignId'];this['originatecalleridnum']=_0x12223f[_0xb3b0('0x22')]||'';this[_0xb3b0('0x23')]=_0x12223f['originatecalleridname']||'';this[_0xb3b0('0x24')]=_0x12223f[_0xb3b0('0x24')];this[_0xb3b0('0x25')]=_0x12223f[_0xb3b0('0x25')];this[_0xb3b0('0x26')]=_0x12223f[_0xb3b0('0x26')];}module[_0xb3b0('0x27')]=QueueCallerAbandon;