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