cfaed4176d8ba4dd00c29d65677eadb31ed226f5
[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 _0xbf9d=['INTEGER','STRING','DATE','setDataValue','followuptime','dispositionat','BOOLEAN','sequelize','exports'];(function(_0x5d6b2e,_0x152255){var _0x5d93f9=function(_0xdc2200){while(--_0xdc2200){_0x5d6b2e['push'](_0x5d6b2e['shift']());}};_0x5d93f9(++_0x152255);}(_0xbf9d,0xf1));var _0xdbf9=function(_0x29c3dc,_0xbb2250){_0x29c3dc=_0x29c3dc-0x0;var _0x50f658=_0xbf9d[_0x29c3dc];return _0x50f658;};'use strict';var Sequelize=require(_0xdbf9('0x0'));var moment=require('moment');module[_0xdbf9('0x1')]={'state':{'type':Sequelize[_0xdbf9('0x2')](0x2)},'statedesc':{'type':Sequelize[_0xdbf9('0x3')]},'scheduledat':{'type':Sequelize[_0xdbf9('0x4')]},'countbusyretry':{'type':Sequelize[_0xdbf9('0x2')],'defaultValue':0x0},'countcongestionretry':{'type':Sequelize[_0xdbf9('0x2')],'defaultValue':0x0},'countnoanswerretry':{'type':Sequelize['INTEGER'],'defaultValue':0x0},'countglobal':{'type':Sequelize[_0xdbf9('0x2')],'defaultValue':0x0},'uniqueid':{'type':Sequelize[_0xdbf9('0x3')]},'originatecalleridnum':{'type':Sequelize['STRING']},'originatecalleridname':{'type':Sequelize[_0xdbf9('0x3')]},'calleridnum':{'type':Sequelize[_0xdbf9('0x3')]},'calleridname':{'type':Sequelize['STRING']},'starttime':{'type':Sequelize[_0xdbf9('0x4')]},'responsetime':{'type':Sequelize[_0xdbf9('0x4')]},'answertime':{'type':Sequelize['DATE']},'droptime':{'type':Sequelize[_0xdbf9('0x4')]},'endtime':{'type':Sequelize[_0xdbf9('0x4')]},'ringtime':{'type':Sequelize[_0xdbf9('0x2')],'defaultValue':0x0},'holdtime':{'type':Sequelize[_0xdbf9('0x2')],'defaultValue':0x0},'talktime':{'type':Sequelize[_0xdbf9('0x2')],'defaultValue':0x0},'followuptime':{'type':Sequelize[_0xdbf9('0x2')],'defaultValue':0x0},'dropreason':{'type':Sequelize[_0xdbf9('0x3')]},'campaign':{'type':Sequelize[_0xdbf9('0x3')]},'campaigntype':{'type':Sequelize['STRING']},'membername':{'type':Sequelize[_0xdbf9('0x3')]},'reason':{'type':Sequelize[_0xdbf9('0x3')]},'disposition':{'type':Sequelize[_0xdbf9('0x3')]},'secondDisposition':{'type':Sequelize[_0xdbf9('0x3')]},'thirdDisposition':{'type':Sequelize[_0xdbf9('0x3')]},'dispositionat':{'type':Sequelize[_0xdbf9('0x4')],'set':function(_0x3b6158){var _0x569c10=this['getDataValue']('endtime');if(_0x569c10&&_0x3b6158){this[_0xdbf9('0x5')](_0xdbf9('0x6'),moment(_0x3b6158)['diff'](moment(_0x569c10),'seconds'));}return this['setDataValue'](_0xdbf9('0x7'),_0x3b6158);}},'amd':{'type':Sequelize['BOOLEAN'],'defaultValue':![]},'fax':{'type':Sequelize[_0xdbf9('0x8')],'defaultValue':![]},'blacklist':{'type':Sequelize[_0xdbf9('0x8')],'defaultValue':![]},'rescheduled':{'type':Sequelize[_0xdbf9('0x8')],'defaultValue':![]},'rescheduledat':{'type':Sequelize[_0xdbf9('0x4')]},'callback':{'type':Sequelize[_0xdbf9('0x8')],'defaultValue':![]},'callbackuniqueid':{'type':Sequelize[_0xdbf9('0x3')],'defaultValue':null},'callbackat':{'type':Sequelize[_0xdbf9('0x4')]},'deleted':{'type':Sequelize['STRING'],'defaultValue':null},'deletedat':{'type':Sequelize[_0xdbf9('0x4')]},'recallme':{'type':Sequelize[_0xdbf9('0x8')],'defaultValue':![]},'agiafterat':{'type':Sequelize[_0xdbf9('0x4')]},'countnosuchnumberretry':{'type':Sequelize[_0xdbf9('0x2')],'defaultValue':0x0},'countdropretry':{'type':Sequelize[_0xdbf9('0x2')],'defaultValue':0x0},'countabandonedretry':{'type':Sequelize[_0xdbf9('0x2')],'defaultValue':0x0},'countmachineretry':{'type':Sequelize[_0xdbf9('0x2')],'defaultValue':0x0},'countagentrejectretry':{'type':Sequelize[_0xdbf9('0x2')],'defaultValue':0x0}};