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