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