Built motion from commit (unavailable).|2.5.0
[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 _0x285f=['path','exports','VIRTUAL','value','extname','getDataValue','STRING','setDataValue','channel','membername','split','INTEGER','DATE','createdAt','MM-DD-YYYY\x20HH:mm','updatedAt','format','toString','sequelize','moment'];(function(_0x4fbfd9,_0x3ab91a){var _0x31dc94=function(_0x11e53b){while(--_0x11e53b){_0x4fbfd9['push'](_0x4fbfd9['shift']());}};_0x31dc94(++_0x3ab91a);}(_0x285f,0x76));var _0xf285=function(_0xba6c94,_0xa4556d){_0xba6c94=_0xba6c94-0x0;var _0x1b6230=_0x285f[_0xba6c94];return _0x1b6230;};'use strict';var Sequelize=require(_0xf285('0x0'));var moment=require(_0xf285('0x1'));var path=require(_0xf285('0x2'));module[_0xf285('0x3')]={'format':{'type':Sequelize[_0xf285('0x4')],'get':function(){return this['getDataValue'](_0xf285('0x5'))?path[_0xf285('0x6')](this[_0xf285('0x7')]('value')):undefined;}},'uniqueid':{'type':Sequelize['STRING']},'channel':{'type':Sequelize[_0xf285('0x8')],'set':function(_0x1d437a){if(_0x1d437a){this[_0xf285('0x9')](_0xf285('0xa'),_0x1d437a);this['setDataValue'](_0xf285('0xb'),_0x1d437a[_0xf285('0xc')](/\/|-/)[0x1]);}}},'membername':{'type':Sequelize['STRING']},'calleridnum':{'type':Sequelize['STRING']},'calleridname':{'type':Sequelize[_0xf285('0x8')]},'connectedlinenum':{'type':Sequelize[_0xf285('0x8')]},'connectedlinename':{'type':Sequelize['STRING']},'accountcode':{'type':Sequelize[_0xf285('0x8')]},'context':{'type':Sequelize[_0xf285('0x8')]},'exten':{'type':Sequelize[_0xf285('0x8')]},'value':{'type':Sequelize['STRING']},'type':{'type':Sequelize[_0xf285('0x8')]},'rating':{'type':Sequelize[_0xf285('0xd')],'validate':{'max':0x5,'min':0x0}},'queue':{'type':Sequelize[_0xf285('0x8')]},'userDisposition':{'type':Sequelize['STRING']},'createdAt':{'type':Sequelize[_0xf285('0xe')],'get':function(){return moment(this['getDataValue'](_0xf285('0xf')))['format'](_0xf285('0x10'))['toString']();}},'updatedAt':{'type':Sequelize[_0xf285('0xe')],'get':function(){return moment(this[_0xf285('0x7')](_0xf285('0x11')))[_0xf285('0x12')](_0xf285('0x10'))[_0xf285('0x13')]();}}};