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