Built motion from commit (unavailable).|2.5.25
[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 _0xb9e7=['VIRTUAL','getDataValue','extname','value','STRING','setDataValue','channel','membername','split','INTEGER','TEXT','NEW','FLOAT','BOOLEAN','format','toString','DATE','updatedAt','MM-DD-YYYY\x20HH:mm','sequelize','moment','path','exports'];(function(_0x8d55ae,_0x4efe63){var _0x4aa93c=function(_0x6b5914){while(--_0x6b5914){_0x8d55ae['push'](_0x8d55ae['shift']());}};_0x4aa93c(++_0x4efe63);}(_0xb9e7,0xb4));var _0x7b9e=function(_0x400322,_0x4353a8){_0x400322=_0x400322-0x0;var _0xfdd597=_0xb9e7[_0x400322];return _0xfdd597;};'use strict';var Sequelize=require(_0x7b9e('0x0'));var moment=require(_0x7b9e('0x1'));var path=require(_0x7b9e('0x2'));module[_0x7b9e('0x3')]={'format':{'type':Sequelize[_0x7b9e('0x4')],'get':function(){return this[_0x7b9e('0x5')]('value')?path[_0x7b9e('0x6')](this[_0x7b9e('0x5')](_0x7b9e('0x7'))):undefined;}},'uniqueid':{'type':Sequelize[_0x7b9e('0x8')]},'channel':{'type':Sequelize['STRING'],'set':function(_0x349618){if(_0x349618){this[_0x7b9e('0x9')](_0x7b9e('0xa'),_0x349618);this[_0x7b9e('0x9')](_0x7b9e('0xb'),_0x349618[_0x7b9e('0xc')](/\/|-/)[0x1]);}}},'membername':{'type':Sequelize['STRING']},'calleridnum':{'type':Sequelize['STRING']},'calleridname':{'type':Sequelize['STRING']},'connectedlinenum':{'type':Sequelize[_0x7b9e('0x8')]},'connectedlinename':{'type':Sequelize[_0x7b9e('0x8')]},'accountcode':{'type':Sequelize['STRING']},'context':{'type':Sequelize['STRING']},'exten':{'type':Sequelize[_0x7b9e('0x8')]},'value':{'type':Sequelize['STRING']},'type':{'type':Sequelize['STRING']},'rating':{'type':Sequelize[_0x7b9e('0xd')],'validate':{'max':0x5,'min':0x0}},'queue':{'type':Sequelize[_0x7b9e('0x8')]},'userDisposition':{'type':Sequelize[_0x7b9e('0x8')]},'userSecondDisposition':{'type':Sequelize['STRING']},'userThirdDisposition':{'type':Sequelize[_0x7b9e('0x8')]},'location':{'type':Sequelize[_0x7b9e('0xe')]},'transcribeName':{'type':Sequelize[_0x7b9e('0x8')]},'transcribeStatus':{'type':Sequelize[_0x7b9e('0x8')],'defaultValue':_0x7b9e('0xf')},'fileUri':{'type':Sequelize['TEXT']},'fileText':{'type':Sequelize['TEXT']},'failureReason':{'type':Sequelize[_0x7b9e('0xe')]},'sentiment':{'type':Sequelize[_0x7b9e('0x8')]},'sPositive':{'type':Sequelize[_0x7b9e('0x10')]},'sNegative':{'type':Sequelize['FLOAT']},'sNeutral':{'type':Sequelize[_0x7b9e('0x10')]},'sMixed':{'type':Sequelize[_0x7b9e('0x10')]},'tempSentiment':{'type':Sequelize[_0x7b9e('0x11')],'defaultValue':![]},'createdAt':{'type':Sequelize['DATE'],'get':function(){return moment(this[_0x7b9e('0x5')]('createdAt'))[_0x7b9e('0x12')]('MM-DD-YYYY\x20HH:mm')[_0x7b9e('0x13')]();}},'updatedAt':{'type':Sequelize[_0x7b9e('0x14')],'get':function(){return moment(this[_0x7b9e('0x5')](_0x7b9e('0x15')))['format'](_0x7b9e('0x16'))[_0x7b9e('0x13')]();}}};