3d290976c713ef57d0f00c45197cdad43097978c
[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 _0x3298=['originatecalleridnum','originatecalleridname','state','statedesc','exports','../utils','uniqueid','scheduledat','type','campaigntype','outbound','queue','countbusyretry','countcongestionretry','countnoanswerretry','countglobal','countnosuchnumberretry','countdropretry','countabandonedretry','countmachineretry','countagentrejectretry','calleridname','name','calleridnum','number','starttime','responsetime','endtime','getSeconds','holdtime','talktime','callback','callbackuniqueid','callbackat','recallme','ContactId','ListId','UserId','VoiceQueueId','CampaignId'];(function(_0x15bab2,_0x1785a6){var _0x2ca599=function(_0x6c4518){while(--_0x6c4518){_0x15bab2['push'](_0x15bab2['shift']());}};_0x2ca599(++_0x1785a6);}(_0x3298,0x1bd));var _0x8329=function(_0x5896b6,_0x3bbd01){_0x5896b6=_0x5896b6-0x0;var _0x40b984=_0x3298[_0x5896b6];return _0x40b984;};'use strict';var utils=require(_0x8329('0x0'));function History(_0x574cbd){this[_0x8329('0x1')]=_0x574cbd[_0x8329('0x1')];this[_0x8329('0x2')]=_0x574cbd['scheduledat']||undefined;this[_0x8329('0x3')]=_0x574cbd['type'];this[_0x8329('0x4')]=_0x574cbd['type']===_0x8329('0x5')?_0x8329('0x6'):_0x574cbd['type'];this['countbusyretry']=_0x574cbd[_0x8329('0x7')];this['countcongestionretry']=_0x574cbd[_0x8329('0x8')];this[_0x8329('0x9')]=_0x574cbd[_0x8329('0x9')];this[_0x8329('0xa')]=_0x574cbd[_0x8329('0x7')]+_0x574cbd[_0x8329('0x8')]+_0x574cbd[_0x8329('0x9')]+_0x574cbd[_0x8329('0xb')]+_0x574cbd[_0x8329('0xc')]+_0x574cbd[_0x8329('0xd')]+_0x574cbd[_0x8329('0xe')]+_0x574cbd['countagentrejectretry'];this[_0x8329('0xb')]=_0x574cbd['countnosuchnumberretry'];this[_0x8329('0xc')]=_0x574cbd[_0x8329('0xc')];this[_0x8329('0xd')]=_0x574cbd[_0x8329('0xd')];this[_0x8329('0xe')]=_0x574cbd[_0x8329('0xe')];this[_0x8329('0xf')]=_0x574cbd['countagentrejectretry'];this['queue']=_0x574cbd['queue'];this[_0x8329('0x10')]=_0x574cbd[_0x8329('0x11')];this[_0x8329('0x12')]=_0x574cbd[_0x8329('0x13')];this[_0x8329('0x14')]=_0x574cbd[_0x8329('0x14')];this[_0x8329('0x15')]=_0x574cbd[_0x8329('0x15')];this[_0x8329('0x16')]=_0x574cbd[_0x8329('0x15')];this['ringtime']=utils[_0x8329('0x17')](_0x574cbd['responsetime'],_0x574cbd[_0x8329('0x14')]);this[_0x8329('0x18')]=0x0;this[_0x8329('0x19')]=0x0;this['callback']=_0x574cbd[_0x8329('0x1a')];this[_0x8329('0x1b')]=_0x574cbd[_0x8329('0x1b')];this[_0x8329('0x1c')]=_0x574cbd[_0x8329('0x1c')];this['recallme']=_0x574cbd[_0x8329('0x1d')];this[_0x8329('0x1e')]=_0x574cbd['ContactId'];this[_0x8329('0x1f')]=_0x574cbd[_0x8329('0x1f')];this[_0x8329('0x20')]=_0x574cbd[_0x8329('0x20')];this[_0x8329('0x21')]=_0x574cbd[_0x8329('0x21')];this[_0x8329('0x22')]=_0x574cbd['CampaignId'];this[_0x8329('0x23')]=_0x574cbd[_0x8329('0x23')]||'';this[_0x8329('0x24')]=_0x574cbd[_0x8329('0x24')]||'';this[_0x8329('0x25')]=_0x574cbd[_0x8329('0x25')];this['statedesc']=_0x574cbd[_0x8329('0x26')];}module[_0x8329('0x27')]=History;