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