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