Built motion from commit 53172ac8.|2.6.30
[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 _0x8e16=['UserId','VoiceQueueId','CampaignId','originatecalleridnum','originatecalleridname','statedesc','uniqueid','scheduledat','type','outbound','queue','countbusyretry','countcongestionretry','countnoanswerretry','countglobal','countnosuchnumberretry','countdropretry','countabandonedretry','countmachineretry','countagentrejectretry','calleridname','name','calleridnum','starttime','responsetime','ringtime','talktime','callback','callbackuniqueid','callbackat','recallme','ContactId'];(function(_0x2f20be,_0x55f0fb){var _0x48046d=function(_0x1b3f29){while(--_0x1b3f29){_0x2f20be['push'](_0x2f20be['shift']());}};_0x48046d(++_0x55f0fb);}(_0x8e16,0xa6));var _0x68e1=function(_0x18d1a7,_0x44162c){_0x18d1a7=_0x18d1a7-0x0;var _0x352453=_0x8e16[_0x18d1a7];return _0x352453;};'use strict';var utils=require('../utils');function History(_0x39cc66){this[_0x68e1('0x0')]=_0x39cc66['uniqueid'];this[_0x68e1('0x1')]=_0x39cc66['scheduledat']||undefined;this[_0x68e1('0x2')]=_0x39cc66[_0x68e1('0x2')];this['campaigntype']=_0x39cc66[_0x68e1('0x2')]===_0x68e1('0x3')?_0x68e1('0x4'):_0x39cc66[_0x68e1('0x2')];this[_0x68e1('0x5')]=_0x39cc66[_0x68e1('0x5')];this[_0x68e1('0x6')]=_0x39cc66[_0x68e1('0x6')];this[_0x68e1('0x7')]=_0x39cc66[_0x68e1('0x7')];this[_0x68e1('0x8')]=_0x39cc66[_0x68e1('0x5')]+_0x39cc66['countcongestionretry']+_0x39cc66[_0x68e1('0x7')]+_0x39cc66[_0x68e1('0x9')]+_0x39cc66[_0x68e1('0xa')]+_0x39cc66[_0x68e1('0xb')]+_0x39cc66[_0x68e1('0xc')]+_0x39cc66[_0x68e1('0xd')];this[_0x68e1('0x9')]=_0x39cc66[_0x68e1('0x9')];this[_0x68e1('0xa')]=_0x39cc66[_0x68e1('0xa')];this[_0x68e1('0xb')]=_0x39cc66[_0x68e1('0xb')];this[_0x68e1('0xc')]=_0x39cc66[_0x68e1('0xc')];this[_0x68e1('0xd')]=_0x39cc66[_0x68e1('0xd')];this['queue']=_0x39cc66[_0x68e1('0x4')];this[_0x68e1('0xe')]=_0x39cc66[_0x68e1('0xf')];this[_0x68e1('0x10')]=_0x39cc66['number'];this[_0x68e1('0x11')]=_0x39cc66[_0x68e1('0x11')];this[_0x68e1('0x12')]=_0x39cc66[_0x68e1('0x12')];this['endtime']=_0x39cc66[_0x68e1('0x12')];this[_0x68e1('0x13')]=utils['getSeconds'](_0x39cc66[_0x68e1('0x12')],_0x39cc66[_0x68e1('0x11')]);this['holdtime']=0x0;this[_0x68e1('0x14')]=0x0;this[_0x68e1('0x15')]=_0x39cc66[_0x68e1('0x15')];this[_0x68e1('0x16')]=_0x39cc66['callbackuniqueid'];this[_0x68e1('0x17')]=_0x39cc66[_0x68e1('0x17')];this[_0x68e1('0x18')]=_0x39cc66[_0x68e1('0x18')];this[_0x68e1('0x19')]=_0x39cc66[_0x68e1('0x19')];this['ListId']=_0x39cc66['ListId'];this['UserId']=_0x39cc66[_0x68e1('0x1a')];this['VoiceQueueId']=_0x39cc66[_0x68e1('0x1b')];this[_0x68e1('0x1c')]=_0x39cc66['CampaignId'];this[_0x68e1('0x1d')]=_0x39cc66['originatecalleridnum']||'';this[_0x68e1('0x1e')]=_0x39cc66[_0x68e1('0x1e')]||'';this['state']=_0x39cc66['state'];this[_0x68e1('0x1f')]=_0x39cc66[_0x68e1('0x1f')];}module['exports']=History;