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