157cca541337198a7f29fe692c9797cd6b415e2b
[motion2.git] / server / api / cmHopperFinal / cmHopperFinal.attributes.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 _0x65b5=['BOOLEAN','sequelize','moment','STRING','DATE','INTEGER','getDataValue','diff','seconds'];(function(_0x5a1a51,_0x144c79){var _0x47edd7=function(_0x2259bb){while(--_0x2259bb){_0x5a1a51['push'](_0x5a1a51['shift']());}};_0x47edd7(++_0x144c79);}(_0x65b5,0x19f));var _0x565b=function(_0x33d2cf,_0xab4150){_0x33d2cf=_0x33d2cf-0x0;var _0x2e6368=_0x65b5[_0x33d2cf];return _0x2e6368;};'use strict';var Sequelize=require(_0x565b('0x0'));var moment=require(_0x565b('0x1'));module['exports']={'state':{'type':Sequelize['INTEGER'](0x2)},'statedesc':{'type':Sequelize[_0x565b('0x2')]},'scheduledat':{'type':Sequelize[_0x565b('0x3')]},'countbusyretry':{'type':Sequelize['INTEGER'],'defaultValue':0x0},'countcongestionretry':{'type':Sequelize['INTEGER'],'defaultValue':0x0},'countnoanswerretry':{'type':Sequelize['INTEGER'],'defaultValue':0x0},'countglobal':{'type':Sequelize[_0x565b('0x4')],'defaultValue':0x0},'uniqueid':{'type':Sequelize['STRING']},'originatecalleridnum':{'type':Sequelize['STRING']},'originatecalleridname':{'type':Sequelize[_0x565b('0x2')]},'calleridnum':{'type':Sequelize[_0x565b('0x2')]},'calleridname':{'type':Sequelize[_0x565b('0x2')]},'starttime':{'type':Sequelize[_0x565b('0x3')]},'responsetime':{'type':Sequelize[_0x565b('0x3')]},'answertime':{'type':Sequelize[_0x565b('0x3')]},'droptime':{'type':Sequelize[_0x565b('0x3')]},'endtime':{'type':Sequelize[_0x565b('0x3')]},'ringtime':{'type':Sequelize['INTEGER'],'defaultValue':0x0},'holdtime':{'type':Sequelize['INTEGER'],'defaultValue':0x0},'talktime':{'type':Sequelize[_0x565b('0x4')],'defaultValue':0x0},'followuptime':{'type':Sequelize['INTEGER'],'defaultValue':0x0},'dropreason':{'type':Sequelize[_0x565b('0x2')]},'campaign':{'type':Sequelize[_0x565b('0x2')]},'campaigntype':{'type':Sequelize[_0x565b('0x2')]},'membername':{'type':Sequelize[_0x565b('0x2')]},'reason':{'type':Sequelize[_0x565b('0x2')]},'disposition':{'type':Sequelize[_0x565b('0x2')]},'dispositionat':{'type':Sequelize[_0x565b('0x3')],'set':function(_0xe0afa9){var _0x35436a=this[_0x565b('0x5')]('endtime');if(_0x35436a&&_0xe0afa9){this['setDataValue']('followuptime',moment(_0xe0afa9)[_0x565b('0x6')](moment(_0x35436a),_0x565b('0x7')));}return this['setDataValue']('dispositionat',_0xe0afa9);}},'amd':{'type':Sequelize[_0x565b('0x8')],'defaultValue':![]},'fax':{'type':Sequelize['BOOLEAN'],'defaultValue':![]},'blacklist':{'type':Sequelize[_0x565b('0x8')],'defaultValue':![]},'rescheduled':{'type':Sequelize[_0x565b('0x8')],'defaultValue':![]},'rescheduledat':{'type':Sequelize['DATE']},'callback':{'type':Sequelize[_0x565b('0x8')],'defaultValue':![]},'callbackuniqueid':{'type':Sequelize[_0x565b('0x2')],'defaultValue':null},'callbackat':{'type':Sequelize[_0x565b('0x3')]},'deleted':{'type':Sequelize[_0x565b('0x2')],'defaultValue':null},'deletedat':{'type':Sequelize[_0x565b('0x3')]},'recallme':{'type':Sequelize[_0x565b('0x8')],'defaultValue':![]},'agiafterat':{'type':Sequelize[_0x565b('0x3')]},'countnosuchnumberretry':{'type':Sequelize['INTEGER'],'defaultValue':0x0},'countdropretry':{'type':Sequelize[_0x565b('0x4')],'defaultValue':0x0},'countabandonedretry':{'type':Sequelize[_0x565b('0x4')],'defaultValue':0x0},'countmachineretry':{'type':Sequelize['INTEGER'],'defaultValue':0x0},'countagentrejectretry':{'type':Sequelize[_0x565b('0x4')],'defaultValue':0x0}};