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