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