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