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