85d5f3dbc4e1778cbb8163e9098f32bb89eeb05d
[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 _0x4fd1=['countagentrejectretry','countnosuchnumberretry','queue','calleridname','name','calleridnum','number','starttime','responsetime','ringtime','holdtime','callback','callbackuniqueid','recallme','ContactId','ListId','UserId','VoiceQueueId','CampaignId','originatecalleridnum','originatecalleridname','state','statedesc','../utils','uniqueid','scheduledat','type','campaigntype','outbound','countbusyretry','countcongestionretry','countnoanswerretry','countglobal','countdropretry','countabandonedretry','countmachineretry'];(function(_0x4347cd,_0x562582){var _0x40c6d7=function(_0xe4c3e7){while(--_0xe4c3e7){_0x4347cd['push'](_0x4347cd['shift']());}};_0x40c6d7(++_0x562582);}(_0x4fd1,0x17f));var _0x14fd=function(_0x566753,_0x10654f){_0x566753=_0x566753-0x0;var _0x4a5ee1=_0x4fd1[_0x566753];return _0x4a5ee1;};'use strict';var utils=require(_0x14fd('0x0'));function History(_0x219a93){this[_0x14fd('0x1')]=_0x219a93[_0x14fd('0x1')];this['scheduledat']=_0x219a93[_0x14fd('0x2')]||undefined;this[_0x14fd('0x3')]=_0x219a93[_0x14fd('0x3')];this[_0x14fd('0x4')]=_0x219a93[_0x14fd('0x3')]===_0x14fd('0x5')?'queue':_0x219a93[_0x14fd('0x3')];this[_0x14fd('0x6')]=_0x219a93[_0x14fd('0x6')];this[_0x14fd('0x7')]=_0x219a93[_0x14fd('0x7')];this[_0x14fd('0x8')]=_0x219a93['countnoanswerretry'];this[_0x14fd('0x9')]=_0x219a93[_0x14fd('0x6')]+_0x219a93[_0x14fd('0x7')]+_0x219a93[_0x14fd('0x8')]+_0x219a93['countnosuchnumberretry']+_0x219a93[_0x14fd('0xa')]+_0x219a93[_0x14fd('0xb')]+_0x219a93[_0x14fd('0xc')]+_0x219a93[_0x14fd('0xd')];this[_0x14fd('0xe')]=_0x219a93[_0x14fd('0xe')];this['countdropretry']=_0x219a93[_0x14fd('0xa')];this['countabandonedretry']=_0x219a93['countabandonedretry'];this[_0x14fd('0xc')]=_0x219a93[_0x14fd('0xc')];this['countagentrejectretry']=_0x219a93[_0x14fd('0xd')];this[_0x14fd('0xf')]=_0x219a93[_0x14fd('0xf')];this[_0x14fd('0x10')]=_0x219a93[_0x14fd('0x11')];this[_0x14fd('0x12')]=_0x219a93[_0x14fd('0x13')];this[_0x14fd('0x14')]=_0x219a93['starttime'];this[_0x14fd('0x15')]=_0x219a93[_0x14fd('0x15')];this['endtime']=_0x219a93[_0x14fd('0x15')];this[_0x14fd('0x16')]=utils['getSeconds'](_0x219a93[_0x14fd('0x15')],_0x219a93['starttime']);this[_0x14fd('0x17')]=0x0;this['talktime']=0x0;this[_0x14fd('0x18')]=_0x219a93[_0x14fd('0x18')];this[_0x14fd('0x19')]=_0x219a93[_0x14fd('0x19')];this['callbackat']=_0x219a93['callbackat'];this[_0x14fd('0x1a')]=_0x219a93[_0x14fd('0x1a')];this['ContactId']=_0x219a93[_0x14fd('0x1b')];this[_0x14fd('0x1c')]=_0x219a93[_0x14fd('0x1c')];this['UserId']=_0x219a93[_0x14fd('0x1d')];this['VoiceQueueId']=_0x219a93[_0x14fd('0x1e')];this[_0x14fd('0x1f')]=_0x219a93[_0x14fd('0x1f')];this[_0x14fd('0x20')]=_0x219a93[_0x14fd('0x20')]||'';this['originatecalleridname']=_0x219a93[_0x14fd('0x21')]||'';this[_0x14fd('0x22')]=_0x219a93[_0x14fd('0x22')];this['statedesc']=_0x219a93[_0x14fd('0x23')];}module['exports']=History;