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