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