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