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