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