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