Built motion from commit 10af8726.|2.6.34
[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 _0x18d0=['recallme','ContactId','ListId','UserId','VoiceQueueId','CampaignId','originatecalleridnum','originatecalleridname','state','statedesc','../utils','uniqueid','scheduledat','campaigntype','type','outbound','queue','countbusyretry','countcongestionretry','countnoanswerretry','countglobal','countnosuchnumberretry','countdropretry','countabandonedretry','countmachineretry','countagentrejectretry','name','starttime','responsetime','endtime','ringtime','holdtime','talktime','callback','callbackuniqueid','callbackat'];(function(_0x297cdf,_0x2b73ac){var _0x3115c9=function(_0x1bd463){while(--_0x1bd463){_0x297cdf['push'](_0x297cdf['shift']());}};_0x3115c9(++_0x2b73ac);}(_0x18d0,0x12a));var _0x018d=function(_0x68c979,_0x431cff){_0x68c979=_0x68c979-0x0;var _0x4f0001=_0x18d0[_0x68c979];return _0x4f0001;};'use strict';var utils=require(_0x018d('0x0'));function History(_0x1245a1){this['uniqueid']=_0x1245a1[_0x018d('0x1')];this['scheduledat']=_0x1245a1[_0x018d('0x2')]||undefined;this['type']=_0x1245a1['type'];this[_0x018d('0x3')]=_0x1245a1[_0x018d('0x4')]===_0x018d('0x5')?_0x018d('0x6'):_0x1245a1[_0x018d('0x4')];this['countbusyretry']=_0x1245a1[_0x018d('0x7')];this['countcongestionretry']=_0x1245a1[_0x018d('0x8')];this[_0x018d('0x9')]=_0x1245a1[_0x018d('0x9')];this[_0x018d('0xa')]=_0x1245a1[_0x018d('0x7')]+_0x1245a1[_0x018d('0x8')]+_0x1245a1[_0x018d('0x9')]+_0x1245a1[_0x018d('0xb')]+_0x1245a1[_0x018d('0xc')]+_0x1245a1[_0x018d('0xd')]+_0x1245a1[_0x018d('0xe')]+_0x1245a1[_0x018d('0xf')];this[_0x018d('0xb')]=_0x1245a1[_0x018d('0xb')];this[_0x018d('0xc')]=_0x1245a1[_0x018d('0xc')];this['countabandonedretry']=_0x1245a1[_0x018d('0xd')];this[_0x018d('0xe')]=_0x1245a1['countmachineretry'];this[_0x018d('0xf')]=_0x1245a1[_0x018d('0xf')];this['queue']=_0x1245a1[_0x018d('0x6')];this['calleridname']=_0x1245a1[_0x018d('0x10')];this['calleridnum']=_0x1245a1['number'];this[_0x018d('0x11')]=_0x1245a1['starttime'];this['responsetime']=_0x1245a1[_0x018d('0x12')];this[_0x018d('0x13')]=_0x1245a1['responsetime'];this[_0x018d('0x14')]=utils['getSeconds'](_0x1245a1['responsetime'],_0x1245a1[_0x018d('0x11')]);this[_0x018d('0x15')]=0x0;this[_0x018d('0x16')]=0x0;this['callback']=_0x1245a1[_0x018d('0x17')];this[_0x018d('0x18')]=_0x1245a1['callbackuniqueid'];this[_0x018d('0x19')]=_0x1245a1['callbackat'];this[_0x018d('0x1a')]=_0x1245a1[_0x018d('0x1a')];this[_0x018d('0x1b')]=_0x1245a1[_0x018d('0x1b')];this['ListId']=_0x1245a1[_0x018d('0x1c')];this[_0x018d('0x1d')]=_0x1245a1['UserId'];this[_0x018d('0x1e')]=_0x1245a1[_0x018d('0x1e')];this[_0x018d('0x1f')]=_0x1245a1['CampaignId'];this[_0x018d('0x20')]=_0x1245a1[_0x018d('0x20')]||'';this[_0x018d('0x21')]=_0x1245a1[_0x018d('0x21')]||'';this[_0x018d('0x22')]=_0x1245a1[_0x018d('0x22')];this[_0x018d('0x23')]=_0x1245a1[_0x018d('0x23')];}module['exports']=History;