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