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