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