6df0785be921156060aeacae48a7e2a93a8e9c11
[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 _0x391d=['countnoanswerretry','countglobal','countdropretry','countabandonedretry','countmachineretry','countagentrejectretry','countnosuchnumberretry','queue','calleridname','calleridnum','starttime','responsetime','endtime','ringtime','holdtime','talktime','callback','callbackuniqueid','callbackat','recallme','ContactId','ListId','UserId','VoiceQueueId','CampaignId','originatecalleridnum','originatecalleridname','state','statedesc','scheduledat','type','outbound','countbusyretry','countcongestionretry'];(function(_0x341e0f,_0x4a09d0){var _0x59555a=function(_0x4343a8){while(--_0x4343a8){_0x341e0f['push'](_0x341e0f['shift']());}};_0x59555a(++_0x4a09d0);}(_0x391d,0xe9));var _0xd391=function(_0x34ece7,_0x197dce){_0x34ece7=_0x34ece7-0x0;var _0x2bb837=_0x391d[_0x34ece7];return _0x2bb837;};'use strict';function Final(_0x6e09a7){this['uniqueid']=_0x6e09a7['uniqueid'];this[_0xd391('0x0')]=_0x6e09a7['scheduledat'];this[_0xd391('0x1')]=_0x6e09a7[_0xd391('0x1')];this['campaigntype']=_0x6e09a7[_0xd391('0x1')]===_0xd391('0x2')?'queue':_0x6e09a7['type'];this['countbusyretry']=_0x6e09a7[_0xd391('0x3')];this[_0xd391('0x4')]=_0x6e09a7['countcongestionretry'];this[_0xd391('0x5')]=_0x6e09a7[_0xd391('0x5')];this[_0xd391('0x6')]=_0x6e09a7[_0xd391('0x3')]+_0x6e09a7[_0xd391('0x4')]+_0x6e09a7[_0xd391('0x5')]+_0x6e09a7['countnosuchnumberretry']+_0x6e09a7[_0xd391('0x7')]+_0x6e09a7[_0xd391('0x8')]+_0x6e09a7[_0xd391('0x9')]+_0x6e09a7[_0xd391('0xa')];this['countnosuchnumberretry']=_0x6e09a7[_0xd391('0xb')];this[_0xd391('0x7')]=_0x6e09a7[_0xd391('0x7')];this[_0xd391('0x8')]=_0x6e09a7[_0xd391('0x8')];this[_0xd391('0x9')]=_0x6e09a7['countmachineretry'];this[_0xd391('0xa')]=_0x6e09a7[_0xd391('0xa')];this[_0xd391('0xc')]=_0x6e09a7['queue'];this[_0xd391('0xd')]=_0x6e09a7[_0xd391('0xd')];this[_0xd391('0xe')]=_0x6e09a7[_0xd391('0xe')];this[_0xd391('0xf')]=_0x6e09a7[_0xd391('0xf')];this['responsetime']=_0x6e09a7[_0xd391('0x10')];this[_0xd391('0x11')]=_0x6e09a7['responsetime'];this[_0xd391('0x12')]=_0x6e09a7[_0xd391('0x12')]||0x0;this[_0xd391('0x13')]=_0x6e09a7[_0xd391('0x13')]||0x0;this['talktime']=_0x6e09a7[_0xd391('0x14')]||0x0;this[_0xd391('0x15')]=_0x6e09a7['callback'];this[_0xd391('0x16')]=_0x6e09a7[_0xd391('0x16')];this['callbackat']=_0x6e09a7[_0xd391('0x17')];this[_0xd391('0x18')]=_0x6e09a7[_0xd391('0x18')];this[_0xd391('0x19')]=_0x6e09a7['ContactId'];this['ListId']=_0x6e09a7[_0xd391('0x1a')];this[_0xd391('0x1b')]=_0x6e09a7[_0xd391('0x1b')];this[_0xd391('0x1c')]=_0x6e09a7['VoiceQueueId'];this[_0xd391('0x1d')]=_0x6e09a7[_0xd391('0x1d')];this['originatecalleridnum']=_0x6e09a7[_0xd391('0x1e')]||'';this[_0xd391('0x1f')]=_0x6e09a7[_0xd391('0x1f')]||'';this[_0xd391('0x20')]=_0x6e09a7[_0xd391('0x20')];this[_0xd391('0x21')]=_0x6e09a7['statedesc'];}module['exports']=Final;