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