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