Built motion from commit da24aabd.|2.6.20
[motion2.git] / server / services / ami / dialer / models / final.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 _0x56b4=['countcongestionretry','countnoanswerretry','countglobal','countnosuchnumberretry','countdropretry','countmachineretry','countagentrejectretry','countabandonedretry','calleridname','calleridnum','starttime','responsetime','ringtime','holdtime','callback','callbackuniqueid','callbackat','recallme','ContactId','ListId','UserId','VoiceQueueId','CampaignId','originatecalleridnum','state','statedesc','exports','uniqueid','scheduledat','type','outbound','queue','countbusyretry'];(function(_0x3e3bee,_0x4f91fe){var _0x3ae14c=function(_0x3861a0){while(--_0x3861a0){_0x3e3bee['push'](_0x3e3bee['shift']());}};_0x3ae14c(++_0x4f91fe);}(_0x56b4,0x102));var _0x456b=function(_0x559f05,_0x473a4d){_0x559f05=_0x559f05-0x0;var _0x4566ff=_0x56b4[_0x559f05];return _0x4566ff;};'use strict';function Final(_0x1ca6ae){this[_0x456b('0x0')]=_0x1ca6ae['uniqueid'];this['scheduledat']=_0x1ca6ae[_0x456b('0x1')];this[_0x456b('0x2')]=_0x1ca6ae['type'];this['campaigntype']=_0x1ca6ae[_0x456b('0x2')]===_0x456b('0x3')?_0x456b('0x4'):_0x1ca6ae[_0x456b('0x2')];this[_0x456b('0x5')]=_0x1ca6ae['countbusyretry'];this[_0x456b('0x6')]=_0x1ca6ae['countcongestionretry'];this['countnoanswerretry']=_0x1ca6ae[_0x456b('0x7')];this[_0x456b('0x8')]=_0x1ca6ae['countbusyretry']+_0x1ca6ae[_0x456b('0x6')]+_0x1ca6ae['countnoanswerretry']+_0x1ca6ae[_0x456b('0x9')]+_0x1ca6ae[_0x456b('0xa')]+_0x1ca6ae['countabandonedretry']+_0x1ca6ae[_0x456b('0xb')]+_0x1ca6ae[_0x456b('0xc')];this[_0x456b('0x9')]=_0x1ca6ae[_0x456b('0x9')];this['countdropretry']=_0x1ca6ae[_0x456b('0xa')];this[_0x456b('0xd')]=_0x1ca6ae[_0x456b('0xd')];this[_0x456b('0xb')]=_0x1ca6ae[_0x456b('0xb')];this[_0x456b('0xc')]=_0x1ca6ae[_0x456b('0xc')];this['queue']=_0x1ca6ae['queue'];this[_0x456b('0xe')]=_0x1ca6ae[_0x456b('0xe')];this[_0x456b('0xf')]=_0x1ca6ae[_0x456b('0xf')];this['starttime']=_0x1ca6ae[_0x456b('0x10')];this['responsetime']=_0x1ca6ae[_0x456b('0x11')];this['endtime']=_0x1ca6ae['responsetime'];this[_0x456b('0x12')]=_0x1ca6ae[_0x456b('0x12')]||0x0;this[_0x456b('0x13')]=_0x1ca6ae[_0x456b('0x13')]||0x0;this['talktime']=_0x1ca6ae['talktime']||0x0;this[_0x456b('0x14')]=_0x1ca6ae[_0x456b('0x14')];this[_0x456b('0x15')]=_0x1ca6ae[_0x456b('0x15')];this[_0x456b('0x16')]=_0x1ca6ae['callbackat'];this[_0x456b('0x17')]=_0x1ca6ae[_0x456b('0x17')];this[_0x456b('0x18')]=_0x1ca6ae['ContactId'];this[_0x456b('0x19')]=_0x1ca6ae['ListId'];this[_0x456b('0x1a')]=_0x1ca6ae['UserId'];this[_0x456b('0x1b')]=_0x1ca6ae[_0x456b('0x1b')];this[_0x456b('0x1c')]=_0x1ca6ae[_0x456b('0x1c')];this[_0x456b('0x1d')]=_0x1ca6ae['originatecalleridnum']||'';this['originatecalleridname']=_0x1ca6ae['originatecalleridname']||'';this[_0x456b('0x1e')]=_0x1ca6ae[_0x456b('0x1e')];this[_0x456b('0x1f')]=_0x1ca6ae[_0x456b('0x1f')];}module[_0x456b('0x20')]=Final;