Built motion from commit (unavailable).|2.5.30
[motion2.git] / server / api / voiceRecording / voiceRecording.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 _0x6366=['BOOLEAN','format','toString','updatedAt','MM-DD-YYYY\x20HH:mm','sequelize','exports','VIRTUAL','getDataValue','value','STRING','setDataValue','membername','INTEGER','TEXT','FLOAT'];(function(_0x5baa13,_0x3983c5){var _0x34f8e2=function(_0x1d88ff){while(--_0x1d88ff){_0x5baa13['push'](_0x5baa13['shift']());}};_0x34f8e2(++_0x3983c5);}(_0x6366,0x105));var _0x6636=function(_0x58ba4d,_0x507231){_0x58ba4d=_0x58ba4d-0x0;var _0x4beae1=_0x6366[_0x58ba4d];return _0x4beae1;};'use strict';var Sequelize=require(_0x6636('0x0'));var moment=require('moment');var path=require('path');module[_0x6636('0x1')]={'format':{'type':Sequelize[_0x6636('0x2')],'get':function(){return this[_0x6636('0x3')](_0x6636('0x4'))?path['extname'](this[_0x6636('0x3')](_0x6636('0x4'))):undefined;}},'uniqueid':{'type':Sequelize[_0x6636('0x5')]},'channel':{'type':Sequelize[_0x6636('0x5')],'set':function(_0x1dbbd3){if(_0x1dbbd3){this[_0x6636('0x6')]('channel',_0x1dbbd3);this[_0x6636('0x6')](_0x6636('0x7'),_0x1dbbd3['split'](/\/|-/)[0x1]);}}},'membername':{'type':Sequelize[_0x6636('0x5')]},'calleridnum':{'type':Sequelize[_0x6636('0x5')]},'calleridname':{'type':Sequelize[_0x6636('0x5')]},'connectedlinenum':{'type':Sequelize[_0x6636('0x5')]},'connectedlinename':{'type':Sequelize[_0x6636('0x5')]},'accountcode':{'type':Sequelize[_0x6636('0x5')]},'context':{'type':Sequelize[_0x6636('0x5')]},'exten':{'type':Sequelize[_0x6636('0x5')]},'value':{'type':Sequelize[_0x6636('0x5')]},'type':{'type':Sequelize[_0x6636('0x5')]},'rating':{'type':Sequelize[_0x6636('0x8')],'validate':{'max':0x5,'min':0x0}},'queue':{'type':Sequelize[_0x6636('0x5')]},'userDisposition':{'type':Sequelize[_0x6636('0x5')]},'userSecondDisposition':{'type':Sequelize['STRING']},'userThirdDisposition':{'type':Sequelize['STRING']},'location':{'type':Sequelize['TEXT']},'transcribeName':{'type':Sequelize[_0x6636('0x5')]},'transcribeStatus':{'type':Sequelize[_0x6636('0x5')],'defaultValue':'NEW'},'fileUri':{'type':Sequelize[_0x6636('0x9')]},'fileText':{'type':Sequelize[_0x6636('0x9')]},'failureReason':{'type':Sequelize[_0x6636('0x9')]},'sentiment':{'type':Sequelize['STRING']},'sPositive':{'type':Sequelize[_0x6636('0xa')]},'sNegative':{'type':Sequelize['FLOAT']},'sNeutral':{'type':Sequelize['FLOAT']},'sMixed':{'type':Sequelize[_0x6636('0xa')]},'tempSentiment':{'type':Sequelize[_0x6636('0xb')],'defaultValue':![]},'createdAt':{'type':Sequelize['DATE'],'get':function(){return moment(this['getDataValue']('createdAt'))[_0x6636('0xc')]('MM-DD-YYYY\x20HH:mm')[_0x6636('0xd')]();}},'updatedAt':{'type':Sequelize['DATE'],'get':function(){return moment(this[_0x6636('0x3')](_0x6636('0xe')))[_0x6636('0xc')](_0x6636('0xf'))['toString']();}}};