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