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