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