728ef573f31ef9c472b91302e18043e27a06fd52
[motion2.git] / server / services / ami / dialer / models / history.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 _0x613e=['countabandonedretry','countagentrejectretry','countdropretry','countmachineretry','calleridname','name','calleridnum','starttime','responsetime','endtime','getSeconds','holdtime','talktime','callback','callbackuniqueid','callbackat','recallme','ListId','VoiceQueueId','CampaignId','originatecalleridnum','originatecalleridname','state','statedesc','exports','uniqueid','scheduledat','type','campaigntype','outbound','queue','countbusyretry','countcongestionretry','countnoanswerretry','countglobal','countnosuchnumberretry'];(function(_0x50d7ba,_0x4e1afe){var _0x1c64ae=function(_0x4419a8){while(--_0x4419a8){_0x50d7ba['push'](_0x50d7ba['shift']());}};_0x1c64ae(++_0x4e1afe);}(_0x613e,0x115));var _0xe613=function(_0x4170aa,_0x1f16a9){_0x4170aa=_0x4170aa-0x0;var _0x3f9ae5=_0x613e[_0x4170aa];return _0x3f9ae5;};'use strict';var utils=require('../utils');function History(_0x5ac130){this[_0xe613('0x0')]=_0x5ac130[_0xe613('0x0')];this[_0xe613('0x1')]=_0x5ac130[_0xe613('0x1')]||undefined;this[_0xe613('0x2')]=_0x5ac130[_0xe613('0x2')];this[_0xe613('0x3')]=_0x5ac130[_0xe613('0x2')]===_0xe613('0x4')?_0xe613('0x5'):_0x5ac130['type'];this[_0xe613('0x6')]=_0x5ac130[_0xe613('0x6')];this[_0xe613('0x7')]=_0x5ac130[_0xe613('0x7')];this[_0xe613('0x8')]=_0x5ac130[_0xe613('0x8')];this[_0xe613('0x9')]=_0x5ac130[_0xe613('0x6')]+_0x5ac130[_0xe613('0x7')]+_0x5ac130[_0xe613('0x8')]+_0x5ac130[_0xe613('0xa')]+_0x5ac130['countdropretry']+_0x5ac130[_0xe613('0xb')]+_0x5ac130['countmachineretry']+_0x5ac130[_0xe613('0xc')];this[_0xe613('0xa')]=_0x5ac130[_0xe613('0xa')];this[_0xe613('0xd')]=_0x5ac130['countdropretry'];this[_0xe613('0xb')]=_0x5ac130[_0xe613('0xb')];this[_0xe613('0xe')]=_0x5ac130[_0xe613('0xe')];this[_0xe613('0xc')]=_0x5ac130[_0xe613('0xc')];this[_0xe613('0x5')]=_0x5ac130[_0xe613('0x5')];this[_0xe613('0xf')]=_0x5ac130[_0xe613('0x10')];this[_0xe613('0x11')]=_0x5ac130['number'];this[_0xe613('0x12')]=_0x5ac130['starttime'];this['responsetime']=_0x5ac130[_0xe613('0x13')];this[_0xe613('0x14')]=_0x5ac130['responsetime'];this['ringtime']=utils[_0xe613('0x15')](_0x5ac130[_0xe613('0x13')],_0x5ac130[_0xe613('0x12')]);this[_0xe613('0x16')]=0x0;this[_0xe613('0x17')]=0x0;this[_0xe613('0x18')]=_0x5ac130[_0xe613('0x18')];this[_0xe613('0x19')]=_0x5ac130[_0xe613('0x19')];this[_0xe613('0x1a')]=_0x5ac130[_0xe613('0x1a')];this[_0xe613('0x1b')]=_0x5ac130['recallme'];this['ContactId']=_0x5ac130['ContactId'];this[_0xe613('0x1c')]=_0x5ac130['ListId'];this['UserId']=_0x5ac130['UserId'];this['VoiceQueueId']=_0x5ac130[_0xe613('0x1d')];this[_0xe613('0x1e')]=_0x5ac130[_0xe613('0x1e')];this[_0xe613('0x1f')]=_0x5ac130[_0xe613('0x1f')]||'';this[_0xe613('0x20')]=_0x5ac130[_0xe613('0x20')]||'';this[_0xe613('0x21')]=_0x5ac130['state'];this['statedesc']=_0x5ac130[_0xe613('0x22')];}module[_0xe613('0x23')]=History;