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