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