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