545237978073e6d1dd24067bcb5917c1c1f06f57
[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 _0xa994=['originatecalleridnum','originatecalleridname','state','statedesc','exports','uniqueid','scheduledat','type','outbound','queue','countbusyretry','countcongestionretry','countnoanswerretry','countdropretry','countmachineretry','countagentrejectretry','countabandonedretry','calleridname','calleridnum','responsetime','endtime','ringtime','holdtime','talktime','callback','callbackuniqueid','callbackat','recallme','ContactId','ListId','UserId','VoiceQueueId','CampaignId'];(function(_0x214ff9,_0x4780da){var _0xdb0edc=function(_0x4f1b58){while(--_0x4f1b58){_0x214ff9['push'](_0x214ff9['shift']());}};_0xdb0edc(++_0x4780da);}(_0xa994,0xec));var _0x4a99=function(_0x470883,_0x1bb7dc){_0x470883=_0x470883-0x0;var _0x59336a=_0xa994[_0x470883];return _0x59336a;};'use strict';function Final(_0x43b5b9){this['uniqueid']=_0x43b5b9[_0x4a99('0x0')];this[_0x4a99('0x1')]=_0x43b5b9[_0x4a99('0x1')];this[_0x4a99('0x2')]=_0x43b5b9[_0x4a99('0x2')];this['campaigntype']=_0x43b5b9[_0x4a99('0x2')]===_0x4a99('0x3')?_0x4a99('0x4'):_0x43b5b9[_0x4a99('0x2')];this[_0x4a99('0x5')]=_0x43b5b9[_0x4a99('0x5')];this['countcongestionretry']=_0x43b5b9[_0x4a99('0x6')];this['countnoanswerretry']=_0x43b5b9['countnoanswerretry'];this['countglobal']=_0x43b5b9[_0x4a99('0x5')]+_0x43b5b9['countcongestionretry']+_0x43b5b9[_0x4a99('0x7')]+_0x43b5b9['countnosuchnumberretry']+_0x43b5b9[_0x4a99('0x8')]+_0x43b5b9['countabandonedretry']+_0x43b5b9[_0x4a99('0x9')]+_0x43b5b9[_0x4a99('0xa')];this['countnosuchnumberretry']=_0x43b5b9['countnosuchnumberretry'];this[_0x4a99('0x8')]=_0x43b5b9[_0x4a99('0x8')];this[_0x4a99('0xb')]=_0x43b5b9['countabandonedretry'];this['countmachineretry']=_0x43b5b9[_0x4a99('0x9')];this['countagentrejectretry']=_0x43b5b9[_0x4a99('0xa')];this['queue']=_0x43b5b9[_0x4a99('0x4')];this[_0x4a99('0xc')]=_0x43b5b9[_0x4a99('0xc')];this[_0x4a99('0xd')]=_0x43b5b9[_0x4a99('0xd')];this['starttime']=_0x43b5b9['starttime'];this[_0x4a99('0xe')]=_0x43b5b9['responsetime'];this[_0x4a99('0xf')]=_0x43b5b9[_0x4a99('0xe')];this[_0x4a99('0x10')]=_0x43b5b9['ringtime']||0x0;this[_0x4a99('0x11')]=_0x43b5b9['holdtime']||0x0;this[_0x4a99('0x12')]=_0x43b5b9[_0x4a99('0x12')]||0x0;this[_0x4a99('0x13')]=_0x43b5b9[_0x4a99('0x13')];this[_0x4a99('0x14')]=_0x43b5b9[_0x4a99('0x14')];this['callbackat']=_0x43b5b9[_0x4a99('0x15')];this[_0x4a99('0x16')]=_0x43b5b9['recallme'];this['ContactId']=_0x43b5b9[_0x4a99('0x17')];this['ListId']=_0x43b5b9[_0x4a99('0x18')];this[_0x4a99('0x19')]=_0x43b5b9[_0x4a99('0x19')];this[_0x4a99('0x1a')]=_0x43b5b9[_0x4a99('0x1a')];this[_0x4a99('0x1b')]=_0x43b5b9[_0x4a99('0x1b')];this[_0x4a99('0x1c')]=_0x43b5b9[_0x4a99('0x1c')]||'';this[_0x4a99('0x1d')]=_0x43b5b9['originatecalleridname']||'';this[_0x4a99('0x1e')]=_0x43b5b9[_0x4a99('0x1e')];this[_0x4a99('0x1f')]=_0x43b5b9[_0x4a99('0x1f')];}module[_0x4a99('0x20')]=Final;