084ac6d3f95f4029c5b6d6f4aef99c20fcc588e5
[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 _0xe0db=['CampaignId','originatecalleridnum','state','statedesc','exports','uniqueid','scheduledat','type','countbusyretry','countcongestionretry','countnoanswerretry','countglobal','countnosuchnumberretry','countdropretry','countmachineretry','countagentrejectretry','countabandonedretry','queue','calleridname','calleridnum','starttime','responsetime','ringtime','holdtime','talktime','callback','callbackuniqueid','callbackat','recallme','ContactId','ListId','UserId','VoiceQueueId'];(function(_0x4168dd,_0x11c7bf){var _0x205683=function(_0x40c156){while(--_0x40c156){_0x4168dd['push'](_0x4168dd['shift']());}};_0x205683(++_0x11c7bf);}(_0xe0db,0x1d3));var _0xbe0d=function(_0x381589,_0x27a707){_0x381589=_0x381589-0x0;var _0x2a075d=_0xe0db[_0x381589];return _0x2a075d;};'use strict';function Final(_0x372d59){this[_0xbe0d('0x0')]=_0x372d59['uniqueid'];this[_0xbe0d('0x1')]=_0x372d59[_0xbe0d('0x1')];this['type']=_0x372d59[_0xbe0d('0x2')];this['campaigntype']=_0x372d59[_0xbe0d('0x2')]==='outbound'?'queue':_0x372d59[_0xbe0d('0x2')];this[_0xbe0d('0x3')]=_0x372d59['countbusyretry'];this[_0xbe0d('0x4')]=_0x372d59[_0xbe0d('0x4')];this['countnoanswerretry']=_0x372d59[_0xbe0d('0x5')];this[_0xbe0d('0x6')]=_0x372d59[_0xbe0d('0x3')]+_0x372d59['countcongestionretry']+_0x372d59['countnoanswerretry']+_0x372d59[_0xbe0d('0x7')]+_0x372d59[_0xbe0d('0x8')]+_0x372d59['countabandonedretry']+_0x372d59[_0xbe0d('0x9')]+_0x372d59[_0xbe0d('0xa')];this[_0xbe0d('0x7')]=_0x372d59[_0xbe0d('0x7')];this[_0xbe0d('0x8')]=_0x372d59['countdropretry'];this[_0xbe0d('0xb')]=_0x372d59['countabandonedretry'];this[_0xbe0d('0x9')]=_0x372d59[_0xbe0d('0x9')];this[_0xbe0d('0xa')]=_0x372d59['countagentrejectretry'];this[_0xbe0d('0xc')]=_0x372d59[_0xbe0d('0xc')];this[_0xbe0d('0xd')]=_0x372d59[_0xbe0d('0xd')];this[_0xbe0d('0xe')]=_0x372d59['calleridnum'];this['starttime']=_0x372d59[_0xbe0d('0xf')];this[_0xbe0d('0x10')]=_0x372d59[_0xbe0d('0x10')];this['endtime']=_0x372d59[_0xbe0d('0x10')];this[_0xbe0d('0x11')]=_0x372d59[_0xbe0d('0x11')]||0x0;this[_0xbe0d('0x12')]=_0x372d59[_0xbe0d('0x12')]||0x0;this[_0xbe0d('0x13')]=_0x372d59[_0xbe0d('0x13')]||0x0;this[_0xbe0d('0x14')]=_0x372d59[_0xbe0d('0x14')];this[_0xbe0d('0x15')]=_0x372d59[_0xbe0d('0x15')];this[_0xbe0d('0x16')]=_0x372d59[_0xbe0d('0x16')];this['recallme']=_0x372d59[_0xbe0d('0x17')];this['ContactId']=_0x372d59[_0xbe0d('0x18')];this['ListId']=_0x372d59[_0xbe0d('0x19')];this[_0xbe0d('0x1a')]=_0x372d59[_0xbe0d('0x1a')];this[_0xbe0d('0x1b')]=_0x372d59[_0xbe0d('0x1b')];this[_0xbe0d('0x1c')]=_0x372d59[_0xbe0d('0x1c')];this[_0xbe0d('0x1d')]=_0x372d59[_0xbe0d('0x1d')]||'';this['originatecalleridname']=_0x372d59['originatecalleridname']||'';this[_0xbe0d('0x1e')]=_0x372d59[_0xbe0d('0x1e')];this[_0xbe0d('0x1f')]=_0x372d59[_0xbe0d('0x1f')];}module[_0xbe0d('0x20')]=Final;