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