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