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