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