Built motion from commit cb845558.|2.6.34
[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 _0xd15b=['talktime','callback','callbackuniqueid','callbackat','recallme','ContactId','ListId','UserId','VoiceQueueId','CampaignId','originatecalleridnum','originatecalleridname','state','statedesc','../utils','uniqueid','scheduledat','type','campaigntype','outbound','queue','countbusyretry','countcongestionretry','countnoanswerretry','countglobal','countnosuchnumberretry','countdropretry','countmachineretry','countagentrejectretry','calleridname','name','calleridnum','starttime','endtime','getSeconds','holdtime'];(function(_0x119d5a,_0x19b457){var _0x15bff4=function(_0x1b7c78){while(--_0x1b7c78){_0x119d5a['push'](_0x119d5a['shift']());}};_0x15bff4(++_0x19b457);}(_0xd15b,0x1e2));var _0xbd15=function(_0x20a584,_0xe384a5){_0x20a584=_0x20a584-0x0;var _0x4b41a8=_0xd15b[_0x20a584];return _0x4b41a8;};'use strict';var utils=require(_0xbd15('0x0'));function History(_0x5c69fb){this['uniqueid']=_0x5c69fb[_0xbd15('0x1')];this['scheduledat']=_0x5c69fb[_0xbd15('0x2')]||undefined;this[_0xbd15('0x3')]=_0x5c69fb[_0xbd15('0x3')];this[_0xbd15('0x4')]=_0x5c69fb[_0xbd15('0x3')]===_0xbd15('0x5')?_0xbd15('0x6'):_0x5c69fb[_0xbd15('0x3')];this['countbusyretry']=_0x5c69fb[_0xbd15('0x7')];this[_0xbd15('0x8')]=_0x5c69fb[_0xbd15('0x8')];this[_0xbd15('0x9')]=_0x5c69fb[_0xbd15('0x9')];this[_0xbd15('0xa')]=_0x5c69fb['countbusyretry']+_0x5c69fb[_0xbd15('0x8')]+_0x5c69fb['countnoanswerretry']+_0x5c69fb[_0xbd15('0xb')]+_0x5c69fb[_0xbd15('0xc')]+_0x5c69fb['countabandonedretry']+_0x5c69fb[_0xbd15('0xd')]+_0x5c69fb[_0xbd15('0xe')];this[_0xbd15('0xb')]=_0x5c69fb[_0xbd15('0xb')];this[_0xbd15('0xc')]=_0x5c69fb['countdropretry'];this['countabandonedretry']=_0x5c69fb['countabandonedretry'];this['countmachineretry']=_0x5c69fb[_0xbd15('0xd')];this[_0xbd15('0xe')]=_0x5c69fb[_0xbd15('0xe')];this[_0xbd15('0x6')]=_0x5c69fb[_0xbd15('0x6')];this[_0xbd15('0xf')]=_0x5c69fb[_0xbd15('0x10')];this[_0xbd15('0x11')]=_0x5c69fb['number'];this[_0xbd15('0x12')]=_0x5c69fb[_0xbd15('0x12')];this['responsetime']=_0x5c69fb['responsetime'];this[_0xbd15('0x13')]=_0x5c69fb['responsetime'];this['ringtime']=utils[_0xbd15('0x14')](_0x5c69fb['responsetime'],_0x5c69fb[_0xbd15('0x12')]);this[_0xbd15('0x15')]=0x0;this[_0xbd15('0x16')]=0x0;this[_0xbd15('0x17')]=_0x5c69fb[_0xbd15('0x17')];this[_0xbd15('0x18')]=_0x5c69fb['callbackuniqueid'];this[_0xbd15('0x19')]=_0x5c69fb[_0xbd15('0x19')];this[_0xbd15('0x1a')]=_0x5c69fb[_0xbd15('0x1a')];this[_0xbd15('0x1b')]=_0x5c69fb[_0xbd15('0x1b')];this[_0xbd15('0x1c')]=_0x5c69fb[_0xbd15('0x1c')];this[_0xbd15('0x1d')]=_0x5c69fb[_0xbd15('0x1d')];this[_0xbd15('0x1e')]=_0x5c69fb['VoiceQueueId'];this[_0xbd15('0x1f')]=_0x5c69fb['CampaignId'];this[_0xbd15('0x20')]=_0x5c69fb[_0xbd15('0x20')]||'';this['originatecalleridname']=_0x5c69fb[_0xbd15('0x21')]||'';this[_0xbd15('0x22')]=_0x5c69fb['state'];this[_0xbd15('0x23')]=_0x5c69fb[_0xbd15('0x23')];}module['exports']=History;