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