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