Built motion from commit eddce310.|2.6.12
[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 _0x4051=['countnoanswerretry','countglobal','countnosuchnumberretry','countdropretry','countabandonedretry','countagentrejectretry','countmachineretry','queue','calleridname','calleridnum','starttime','responsetime','endtime','ringtime','holdtime','talktime','callback','callbackat','recallme','ContactId','ListId','UserId','VoiceQueueId','CampaignId','originatecalleridnum','originatecalleridname','state','statedesc','uniqueid','scheduledat','type','campaigntype','countbusyretry','countcongestionretry'];(function(_0x3ce301,_0x858468){var _0x323499=function(_0x789e5b){while(--_0x789e5b){_0x3ce301['push'](_0x3ce301['shift']());}};_0x323499(++_0x858468);}(_0x4051,0x82));var _0x1405=function(_0x565c49,_0x54acd0){_0x565c49=_0x565c49-0x0;var _0x20ca34=_0x4051[_0x565c49];return _0x20ca34;};'use strict';function Final(_0x2efd34){this[_0x1405('0x0')]=_0x2efd34[_0x1405('0x0')];this[_0x1405('0x1')]=_0x2efd34[_0x1405('0x1')];this[_0x1405('0x2')]=_0x2efd34[_0x1405('0x2')];this[_0x1405('0x3')]=_0x2efd34[_0x1405('0x2')]==='outbound'?'queue':_0x2efd34[_0x1405('0x2')];this[_0x1405('0x4')]=_0x2efd34[_0x1405('0x4')];this[_0x1405('0x5')]=_0x2efd34[_0x1405('0x5')];this[_0x1405('0x6')]=_0x2efd34[_0x1405('0x6')];this[_0x1405('0x7')]=_0x2efd34['countbusyretry']+_0x2efd34[_0x1405('0x5')]+_0x2efd34[_0x1405('0x6')]+_0x2efd34[_0x1405('0x8')]+_0x2efd34[_0x1405('0x9')]+_0x2efd34[_0x1405('0xa')]+_0x2efd34['countmachineretry']+_0x2efd34[_0x1405('0xb')];this[_0x1405('0x8')]=_0x2efd34[_0x1405('0x8')];this['countdropretry']=_0x2efd34['countdropretry'];this['countabandonedretry']=_0x2efd34['countabandonedretry'];this[_0x1405('0xc')]=_0x2efd34[_0x1405('0xc')];this[_0x1405('0xb')]=_0x2efd34[_0x1405('0xb')];this[_0x1405('0xd')]=_0x2efd34['queue'];this[_0x1405('0xe')]=_0x2efd34[_0x1405('0xe')];this['calleridnum']=_0x2efd34[_0x1405('0xf')];this[_0x1405('0x10')]=_0x2efd34[_0x1405('0x10')];this[_0x1405('0x11')]=_0x2efd34['responsetime'];this[_0x1405('0x12')]=_0x2efd34[_0x1405('0x11')];this[_0x1405('0x13')]=_0x2efd34['ringtime']||0x0;this['holdtime']=_0x2efd34[_0x1405('0x14')]||0x0;this[_0x1405('0x15')]=_0x2efd34[_0x1405('0x15')]||0x0;this[_0x1405('0x16')]=_0x2efd34[_0x1405('0x16')];this['callbackuniqueid']=_0x2efd34['callbackuniqueid'];this[_0x1405('0x17')]=_0x2efd34[_0x1405('0x17')];this[_0x1405('0x18')]=_0x2efd34['recallme'];this[_0x1405('0x19')]=_0x2efd34[_0x1405('0x19')];this['ListId']=_0x2efd34[_0x1405('0x1a')];this['UserId']=_0x2efd34[_0x1405('0x1b')];this[_0x1405('0x1c')]=_0x2efd34[_0x1405('0x1c')];this['CampaignId']=_0x2efd34[_0x1405('0x1d')];this[_0x1405('0x1e')]=_0x2efd34[_0x1405('0x1e')]||'';this[_0x1405('0x1f')]=_0x2efd34[_0x1405('0x1f')]||'';this[_0x1405('0x20')]=_0x2efd34[_0x1405('0x20')];this[_0x1405('0x21')]=_0x2efd34['statedesc'];}module['exports']=Final;