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