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