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