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