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