e61ceff05c6899020c7a6dca6d3487b26a6f7d21
[motion-next.git] / server / api / voiceRecording / voiceRecording.attributes.js
1 const a770_0x5468=['moment','format','DATE','NEW','TEXT','exports','channel','STRING','toString','VIRTUAL','getDataValue','FLOAT','sequelize','setDataValue','INTEGER','path','extname','updatedAt','value','BOOLEAN','createdAt','MM-DD-YYYY\x20HH:mm'];(function(_0x5a0709,_0x546855){const _0x2587cf=function(_0x442d82){while(--_0x442d82){_0x5a0709['push'](_0x5a0709['shift']());}};_0x2587cf(++_0x546855);}(a770_0x5468,0xcc));const a770_0x2587=function(_0x5a0709,_0x546855){_0x5a0709=_0x5a0709-0x0;let _0x2587cf=a770_0x5468[_0x5a0709];return _0x2587cf;};const _0x51ff81=a770_0x2587;'use strict';const Sequelize=require(_0x51ff81('0x6')),moment=require(_0x51ff81('0x10')),path=require(_0x51ff81('0x9'));module[_0x51ff81('0x15')]={'format':{'type':Sequelize[_0x51ff81('0x3')],'get':function(){const _0x5d8433=_0x51ff81;return this[_0x5d8433('0x4')](_0x5d8433('0xc'))?path[_0x5d8433('0xa')](this['getDataValue'](_0x5d8433('0xc'))):undefined;}},'uniqueid':{'type':Sequelize[_0x51ff81('0x1')]},'channel':{'type':Sequelize['STRING'],'set':function(_0x442d82){const _0x41d7bd=_0x51ff81;_0x442d82&&(this[_0x41d7bd('0x7')](_0x41d7bd('0x0'),_0x442d82),this[_0x41d7bd('0x7')]('membername',_0x442d82['split'](/\/|-/)[0x1]));}},'membername':{'type':Sequelize[_0x51ff81('0x1')]},'calleridnum':{'type':Sequelize[_0x51ff81('0x1')]},'calleridname':{'type':Sequelize[_0x51ff81('0x1')]},'connectedlinenum':{'type':Sequelize[_0x51ff81('0x1')]},'connectedlinename':{'type':Sequelize['STRING']},'accountcode':{'type':Sequelize[_0x51ff81('0x1')]},'context':{'type':Sequelize[_0x51ff81('0x1')]},'exten':{'type':Sequelize[_0x51ff81('0x1')]},'value':{'type':Sequelize[_0x51ff81('0x1')]},'type':{'type':Sequelize[_0x51ff81('0x1')]},'rating':{'type':Sequelize[_0x51ff81('0x8')],'validate':{'max':0x5,'min':0x0}},'queue':{'type':Sequelize['STRING']},'userDisposition':{'type':Sequelize['STRING']},'userSecondDisposition':{'type':Sequelize['STRING']},'userThirdDisposition':{'type':Sequelize[_0x51ff81('0x1')]},'location':{'type':Sequelize[_0x51ff81('0x14')]},'transcribeName':{'type':Sequelize[_0x51ff81('0x1')]},'transcribeStatus':{'type':Sequelize[_0x51ff81('0x1')],'defaultValue':_0x51ff81('0x13')},'fileUri':{'type':Sequelize['TEXT']},'fileText':{'type':Sequelize['TEXT']},'failureReason':{'type':Sequelize[_0x51ff81('0x14')]},'sentiment':{'type':Sequelize[_0x51ff81('0x1')]},'sPositive':{'type':Sequelize[_0x51ff81('0x5')]},'sNegative':{'type':Sequelize[_0x51ff81('0x5')]},'sNeutral':{'type':Sequelize[_0x51ff81('0x5')]},'sMixed':{'type':Sequelize[_0x51ff81('0x5')]},'tempSentiment':{'type':Sequelize[_0x51ff81('0xd')],'defaultValue':![]},'createdAt':{'type':Sequelize['DATE'],'get':function(){const _0x58dc4d=_0x51ff81;return moment(this[_0x58dc4d('0x4')](_0x58dc4d('0xe')))[_0x58dc4d('0x11')](_0x58dc4d('0xf'))[_0x58dc4d('0x2')]();}},'updatedAt':{'type':Sequelize[_0x51ff81('0x12')],'get':function(){const _0x35f954=_0x51ff81;return moment(this[_0x35f954('0x4')](_0x35f954('0xb')))[_0x35f954('0x11')](_0x35f954('0xf'))['toString']();}}};