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