Built motion from commit e493b9a4954b50a8ee6d0034ba3601cd210d989d. Version 3.0.0...
[motion-next.git] / server / api / voiceRecording / voiceRecording.attributes.js
1 'use strict';const a923_0x2dec=['createdAt','1nhQKPx','764355hvdMiW','setDataValue','STRING','TEXT','65947LbqEuu','extname','attributes','INTEGER','904567yeRBfs','getDataValue','BOOLEAN','format','DATE','14749XkiFXX','FLOAT','toString','539629XBcJGO','511999mKzNLx','MM-DD-YYYY\x20HH:mm','value','VIRTUAL','path','171973fBCsYQ','sequelize','209oxicpK','channel','membername','moment'];const a923_0x3a2f=function(_0x4a422c,_0xe5e5f9){_0x4a422c=_0x4a422c-0x1e0;let _0x2decae=a923_0x2dec[_0x4a422c];return _0x2decae;};const a923_0x4dc100=a923_0x3a2f;(function(_0x3764d4,_0x3d8a27){const _0x43e0aa=a923_0x3a2f;while(!![]){try{const _0x2eddca=-parseInt(_0x43e0aa(0x1e1))+-parseInt(_0x43e0aa(0x1f1))+-parseInt(_0x43e0aa(0x1e9))+-parseInt(_0x43e0aa(0x1f2))+parseInt(_0x43e0aa(0x1e0))*parseInt(_0x43e0aa(0x1f7))+-parseInt(_0x43e0aa(0x1e5))+parseInt(_0x43e0aa(0x1ee))*parseInt(_0x43e0aa(0x1f9));if(_0x2eddca===_0x3d8a27)break;else _0x3764d4['push'](_0x3764d4['shift']());}catch(_0x383ffd){_0x3764d4['push'](_0x3764d4['shift']());}}}(a923_0x2dec,0x72431));const {DataTypes}=require(a923_0x4dc100(0x1f8)),moment=require(a923_0x4dc100(0x1fc)),path=require(a923_0x4dc100(0x1f6)),attributes={'format':{'type':DataTypes[a923_0x4dc100(0x1f5)],'get':function(){const _0x54c65a=a923_0x4dc100;return this['getDataValue']('value')?path[_0x54c65a(0x1e6)](this[_0x54c65a(0x1ea)](_0x54c65a(0x1f4))):undefined;}},'uniqueid':{'type':DataTypes[a923_0x4dc100(0x1e3)]},'channel':{'type':DataTypes[a923_0x4dc100(0x1e3)],'set':function(_0x5670b1){const _0x4e6cf3=a923_0x4dc100;_0x5670b1&&(this[_0x4e6cf3(0x1e2)](_0x4e6cf3(0x1fa),_0x5670b1),this[_0x4e6cf3(0x1e2)](_0x4e6cf3(0x1fb),_0x5670b1['split'](/\/|-/)[0x1]));}},'membername':{'type':DataTypes[a923_0x4dc100(0x1e3)]},'calleridnum':{'type':DataTypes[a923_0x4dc100(0x1e3)]},'calleridname':{'type':DataTypes['STRING']},'connectedlinenum':{'type':DataTypes[a923_0x4dc100(0x1e3)]},'connectedlinename':{'type':DataTypes[a923_0x4dc100(0x1e3)]},'accountcode':{'type':DataTypes[a923_0x4dc100(0x1e3)]},'context':{'type':DataTypes['STRING']},'exten':{'type':DataTypes[a923_0x4dc100(0x1e3)]},'value':{'type':DataTypes[a923_0x4dc100(0x1e3)]},'type':{'type':DataTypes['STRING']},'rating':{'type':DataTypes[a923_0x4dc100(0x1e8)],'validate':{'max':0x5,'min':0x0}},'queue':{'type':DataTypes['STRING']},'userDisposition':{'type':DataTypes[a923_0x4dc100(0x1e3)]},'userSecondDisposition':{'type':DataTypes[a923_0x4dc100(0x1e3)]},'userThirdDisposition':{'type':DataTypes[a923_0x4dc100(0x1e3)]},'location':{'type':DataTypes['TEXT']},'transcribeName':{'type':DataTypes[a923_0x4dc100(0x1e3)]},'transcribeStatus':{'type':DataTypes[a923_0x4dc100(0x1e3)],'defaultValue':'NEW'},'fileUri':{'type':DataTypes[a923_0x4dc100(0x1e4)]},'fileText':{'type':DataTypes[a923_0x4dc100(0x1e4)]},'failureReason':{'type':DataTypes[a923_0x4dc100(0x1e4)]},'sentiment':{'type':DataTypes[a923_0x4dc100(0x1e3)]},'sPositive':{'type':DataTypes[a923_0x4dc100(0x1ef)]},'sNegative':{'type':DataTypes[a923_0x4dc100(0x1ef)]},'sNeutral':{'type':DataTypes['FLOAT']},'sMixed':{'type':DataTypes[a923_0x4dc100(0x1ef)]},'tempSentiment':{'type':DataTypes[a923_0x4dc100(0x1eb)],'defaultValue':![]},'createdAt':{'type':DataTypes[a923_0x4dc100(0x1ed)],'get':function(){const _0x259e69=a923_0x4dc100;return moment(this[_0x259e69(0x1ea)](_0x259e69(0x1fd)))[_0x259e69(0x1ec)](_0x259e69(0x1f3))[_0x259e69(0x1f0)]();}},'updatedAt':{'type':DataTypes[a923_0x4dc100(0x1ed)],'get':function(){const _0x534878=a923_0x4dc100;return moment(this[_0x534878(0x1ea)]('updatedAt'))[_0x534878(0x1ec)](_0x534878(0x1f3))[_0x534878(0x1f0)]();}}};module['exports'][a923_0x4dc100(0x1e7)]=attributes;