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