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