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