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