152c582fb4b530fd2bd369e9ad18117717b69157
[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 _0x70f5=['recallme','ContactId','ListId','UserId','VoiceQueueId','CampaignId','originatecalleridnum','originatecalleridname','state','statedesc','uniqueid','scheduledat','type','campaigntype','queue','countbusyretry','countcongestionretry','countnoanswerretry','countglobal','countnosuchnumberretry','countdropretry','countabandonedretry','countmachineretry','countagentrejectretry','calleridname','starttime','responsetime','endtime','ringtime','talktime','callback','callbackuniqueid','callbackat'];(function(_0x1a017e,_0x349a22){var _0x3cccb4=function(_0x579b4e){while(--_0x579b4e){_0x1a017e['push'](_0x1a017e['shift']());}};_0x3cccb4(++_0x349a22);}(_0x70f5,0x196));var _0x570f=function(_0x1d7b03,_0x330a1a){_0x1d7b03=_0x1d7b03-0x0;var _0x5ee10a=_0x70f5[_0x1d7b03];return _0x5ee10a;};'use strict';function Final(_0x509780){this[_0x570f('0x0')]=_0x509780['uniqueid'];this[_0x570f('0x1')]=_0x509780['scheduledat'];this[_0x570f('0x2')]=_0x509780[_0x570f('0x2')];this[_0x570f('0x3')]=_0x509780[_0x570f('0x2')]==='outbound'?_0x570f('0x4'):_0x509780['type'];this[_0x570f('0x5')]=_0x509780[_0x570f('0x5')];this[_0x570f('0x6')]=_0x509780[_0x570f('0x6')];this['countnoanswerretry']=_0x509780[_0x570f('0x7')];this[_0x570f('0x8')]=_0x509780[_0x570f('0x5')]+_0x509780['countcongestionretry']+_0x509780[_0x570f('0x7')]+_0x509780[_0x570f('0x9')]+_0x509780[_0x570f('0xa')]+_0x509780[_0x570f('0xb')]+_0x509780[_0x570f('0xc')]+_0x509780[_0x570f('0xd')];this[_0x570f('0x9')]=_0x509780[_0x570f('0x9')];this[_0x570f('0xa')]=_0x509780[_0x570f('0xa')];this['countabandonedretry']=_0x509780[_0x570f('0xb')];this['countmachineretry']=_0x509780[_0x570f('0xc')];this['countagentrejectretry']=_0x509780[_0x570f('0xd')];this[_0x570f('0x4')]=_0x509780[_0x570f('0x4')];this['calleridname']=_0x509780[_0x570f('0xe')];this['calleridnum']=_0x509780['calleridnum'];this[_0x570f('0xf')]=_0x509780['starttime'];this[_0x570f('0x10')]=_0x509780[_0x570f('0x10')];this[_0x570f('0x11')]=_0x509780['responsetime'];this[_0x570f('0x12')]=_0x509780['ringtime']||0x0;this['holdtime']=_0x509780['holdtime']||0x0;this[_0x570f('0x13')]=_0x509780[_0x570f('0x13')]||0x0;this[_0x570f('0x14')]=_0x509780[_0x570f('0x14')];this['callbackuniqueid']=_0x509780[_0x570f('0x15')];this[_0x570f('0x16')]=_0x509780[_0x570f('0x16')];this[_0x570f('0x17')]=_0x509780['recallme'];this[_0x570f('0x18')]=_0x509780['ContactId'];this[_0x570f('0x19')]=_0x509780[_0x570f('0x19')];this['UserId']=_0x509780[_0x570f('0x1a')];this[_0x570f('0x1b')]=_0x509780['VoiceQueueId'];this['CampaignId']=_0x509780[_0x570f('0x1c')];this[_0x570f('0x1d')]=_0x509780[_0x570f('0x1d')]||'';this[_0x570f('0x1e')]=_0x509780[_0x570f('0x1e')]||'';this[_0x570f('0x1f')]=_0x509780[_0x570f('0x1f')];this[_0x570f('0x20')]=_0x509780['statedesc'];}module['exports']=Final;