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