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