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