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