38990fbbff8ad8f0d8622795f38590d2507ce0a7
[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 _0x62fd=['split','INTEGER','TEXT','NEW','FLOAT','BOOLEAN','DATE','createdAt','format','MM-DD-YYYY\x20HH:mm','toString','updatedAt','sequelize','moment','exports','getDataValue','value','STRING','setDataValue','channel','membername'];(function(_0x41e99d,_0x197596){var _0x4c5021=function(_0x14766d){while(--_0x14766d){_0x41e99d['push'](_0x41e99d['shift']());}};_0x4c5021(++_0x197596);}(_0x62fd,0x19b));var _0xd62f=function(_0x3a79a9,_0x50d482){_0x3a79a9=_0x3a79a9-0x0;var _0x426493=_0x62fd[_0x3a79a9];return _0x426493;};'use strict';var Sequelize=require(_0xd62f('0x0'));var moment=require(_0xd62f('0x1'));var path=require('path');module[_0xd62f('0x2')]={'format':{'type':Sequelize['VIRTUAL'],'get':function(){return this[_0xd62f('0x3')]('value')?path['extname'](this[_0xd62f('0x3')](_0xd62f('0x4'))):undefined;}},'uniqueid':{'type':Sequelize[_0xd62f('0x5')]},'channel':{'type':Sequelize[_0xd62f('0x5')],'set':function(_0x738067){if(_0x738067){this[_0xd62f('0x6')](_0xd62f('0x7'),_0x738067);this[_0xd62f('0x6')](_0xd62f('0x8'),_0x738067[_0xd62f('0x9')](/\/|-/)[0x1]);}}},'membername':{'type':Sequelize['STRING']},'calleridnum':{'type':Sequelize[_0xd62f('0x5')]},'calleridname':{'type':Sequelize[_0xd62f('0x5')]},'connectedlinenum':{'type':Sequelize[_0xd62f('0x5')]},'connectedlinename':{'type':Sequelize[_0xd62f('0x5')]},'accountcode':{'type':Sequelize[_0xd62f('0x5')]},'context':{'type':Sequelize[_0xd62f('0x5')]},'exten':{'type':Sequelize[_0xd62f('0x5')]},'value':{'type':Sequelize[_0xd62f('0x5')]},'type':{'type':Sequelize[_0xd62f('0x5')]},'rating':{'type':Sequelize[_0xd62f('0xa')],'validate':{'max':0x5,'min':0x0}},'queue':{'type':Sequelize[_0xd62f('0x5')]},'userDisposition':{'type':Sequelize[_0xd62f('0x5')]},'userSecondDisposition':{'type':Sequelize[_0xd62f('0x5')]},'userThirdDisposition':{'type':Sequelize[_0xd62f('0x5')]},'location':{'type':Sequelize[_0xd62f('0xb')]},'transcribeName':{'type':Sequelize['STRING']},'transcribeStatus':{'type':Sequelize[_0xd62f('0x5')],'defaultValue':_0xd62f('0xc')},'fileUri':{'type':Sequelize[_0xd62f('0xb')]},'fileText':{'type':Sequelize[_0xd62f('0xb')]},'failureReason':{'type':Sequelize[_0xd62f('0xb')]},'sentiment':{'type':Sequelize[_0xd62f('0x5')]},'sPositive':{'type':Sequelize[_0xd62f('0xd')]},'sNegative':{'type':Sequelize[_0xd62f('0xd')]},'sNeutral':{'type':Sequelize[_0xd62f('0xd')]},'sMixed':{'type':Sequelize[_0xd62f('0xd')]},'tempSentiment':{'type':Sequelize[_0xd62f('0xe')],'defaultValue':![]},'createdAt':{'type':Sequelize[_0xd62f('0xf')],'get':function(){return moment(this[_0xd62f('0x3')](_0xd62f('0x10')))[_0xd62f('0x11')](_0xd62f('0x12'))[_0xd62f('0x13')]();}},'updatedAt':{'type':Sequelize[_0xd62f('0xf')],'get':function(){return moment(this['getDataValue'](_0xd62f('0x14')))[_0xd62f('0x11')](_0xd62f('0x12'))[_0xd62f('0x13')]();}}};