Built motion from commit (unavailable).|2.0.71
[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 _0xdaa7=['sequelize','moment','path','VIRTUAL','getDataValue','value','STRING','setDataValue','channel','membername','split','INTEGER','DATE','createdAt','format','MM-DD-YYYY\x20HH:mm','toString','updatedAt'];(function(_0x11c707,_0x195620){var _0x4275eb=function(_0xcca672){while(--_0xcca672){_0x11c707['push'](_0x11c707['shift']());}};_0x4275eb(++_0x195620);}(_0xdaa7,0x1e6));var _0x7daa=function(_0x2a4095,_0x13f4f0){_0x2a4095=_0x2a4095-0x0;var _0x52eeab=_0xdaa7[_0x2a4095];return _0x52eeab;};'use strict';var Sequelize=require(_0x7daa('0x0'));var moment=require(_0x7daa('0x1'));var path=require(_0x7daa('0x2'));module['exports']={'format':{'type':Sequelize[_0x7daa('0x3')],'get':function(){return this[_0x7daa('0x4')]('value')?path['extname'](this[_0x7daa('0x4')](_0x7daa('0x5'))):undefined;}},'uniqueid':{'type':Sequelize[_0x7daa('0x6')]},'channel':{'type':Sequelize[_0x7daa('0x6')],'set':function(_0x507156){if(_0x507156){this[_0x7daa('0x7')](_0x7daa('0x8'),_0x507156);this['setDataValue'](_0x7daa('0x9'),_0x507156[_0x7daa('0xa')](/\/|-/)[0x1]);}}},'membername':{'type':Sequelize['STRING']},'calleridnum':{'type':Sequelize[_0x7daa('0x6')]},'calleridname':{'type':Sequelize['STRING']},'connectedlinenum':{'type':Sequelize[_0x7daa('0x6')]},'connectedlinename':{'type':Sequelize[_0x7daa('0x6')]},'accountcode':{'type':Sequelize[_0x7daa('0x6')]},'context':{'type':Sequelize[_0x7daa('0x6')]},'exten':{'type':Sequelize['STRING']},'value':{'type':Sequelize[_0x7daa('0x6')]},'type':{'type':Sequelize['STRING']},'rating':{'type':Sequelize[_0x7daa('0xb')],'validate':{'max':0x5,'min':0x0}},'queue':{'type':Sequelize['STRING']},'userDisposition':{'type':Sequelize[_0x7daa('0x6')]},'createdAt':{'type':Sequelize[_0x7daa('0xc')],'get':function(){return moment(this['getDataValue'](_0x7daa('0xd')))[_0x7daa('0xe')](_0x7daa('0xf'))[_0x7daa('0x10')]();}},'updatedAt':{'type':Sequelize[_0x7daa('0xc')],'get':function(){return moment(this['getDataValue'](_0x7daa('0x11')))[_0x7daa('0xe')](_0x7daa('0xf'))[_0x7daa('0x10')]();}}};