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