Built motion from commit (unavailable).|2.4.21
[motion2.git] / server / api / voiceRecording / voiceRecording.attributes.js
index 137bf48..b03bb0b 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0xcd63=['INTEGER','getDataValue','createdAt','format','MM-DD-YYYY\x20HH:mm','toString','DATE','updatedAt','sequelize','moment','path','exports','VIRTUAL','value','extname','STRING','channel','setDataValue','membername','split'];(function(_0x48b0a8,_0x32ced5){var _0x322218=function(_0x2fe286){while(--_0x2fe286){_0x48b0a8['push'](_0x48b0a8['shift']());}};_0x322218(++_0x32ced5);}(_0xcd63,0xe4));var _0x3cd6=function(_0x3637e0,_0x22b5f9){_0x3637e0=_0x3637e0-0x0;var _0x54d5b2=_0xcd63[_0x3637e0];return _0x54d5b2;};'use strict';var Sequelize=require(_0x3cd6('0x0'));var moment=require(_0x3cd6('0x1'));var path=require(_0x3cd6('0x2'));module[_0x3cd6('0x3')]={'format':{'type':Sequelize[_0x3cd6('0x4')],'get':function(){return this['getDataValue'](_0x3cd6('0x5'))?path[_0x3cd6('0x6')](this['getDataValue']('value')):undefined;}},'uniqueid':{'type':Sequelize[_0x3cd6('0x7')]},'channel':{'type':Sequelize[_0x3cd6('0x7')],'set':function(_0x17974e){if(_0x17974e){this['setDataValue'](_0x3cd6('0x8'),_0x17974e);this[_0x3cd6('0x9')](_0x3cd6('0xa'),_0x17974e[_0x3cd6('0xb')](/\/|-/)[0x1]);}}},'membername':{'type':Sequelize['STRING']},'calleridnum':{'type':Sequelize[_0x3cd6('0x7')]},'calleridname':{'type':Sequelize['STRING']},'connectedlinenum':{'type':Sequelize[_0x3cd6('0x7')]},'connectedlinename':{'type':Sequelize[_0x3cd6('0x7')]},'accountcode':{'type':Sequelize[_0x3cd6('0x7')]},'context':{'type':Sequelize[_0x3cd6('0x7')]},'exten':{'type':Sequelize[_0x3cd6('0x7')]},'value':{'type':Sequelize[_0x3cd6('0x7')]},'type':{'type':Sequelize[_0x3cd6('0x7')]},'rating':{'type':Sequelize[_0x3cd6('0xc')],'validate':{'max':0x5,'min':0x0}},'queue':{'type':Sequelize['STRING']},'userDisposition':{'type':Sequelize['STRING']},'createdAt':{'type':Sequelize['DATE'],'get':function(){return moment(this[_0x3cd6('0xd')](_0x3cd6('0xe')))[_0x3cd6('0xf')](_0x3cd6('0x10'))[_0x3cd6('0x11')]();}},'updatedAt':{'type':Sequelize[_0x3cd6('0x12')],'get':function(){return moment(this[_0x3cd6('0xd')](_0x3cd6('0x13')))[_0x3cd6('0xf')](_0x3cd6('0x10'))['toString']();}}};
\ No newline at end of file
+var _0x641b=['DATE','MM-DD-YYYY\x20HH:mm','toString','updatedAt','format','path','exports','VIRTUAL','getDataValue','value','STRING','setDataValue','membername','split','INTEGER'];(function(_0x41e958,_0x2bff6f){var _0x36c4f4=function(_0x22dc30){while(--_0x22dc30){_0x41e958['push'](_0x41e958['shift']());}};_0x36c4f4(++_0x2bff6f);}(_0x641b,0x140));var _0xb641=function(_0x1b0bae,_0x2668ed){_0x1b0bae=_0x1b0bae-0x0;var _0x11c058=_0x641b[_0x1b0bae];return _0x11c058;};'use strict';var Sequelize=require('sequelize');var moment=require('moment');var path=require(_0xb641('0x0'));module[_0xb641('0x1')]={'format':{'type':Sequelize[_0xb641('0x2')],'get':function(){return this[_0xb641('0x3')](_0xb641('0x4'))?path['extname'](this['getDataValue'](_0xb641('0x4'))):undefined;}},'uniqueid':{'type':Sequelize['STRING']},'channel':{'type':Sequelize[_0xb641('0x5')],'set':function(_0x923427){if(_0x923427){this[_0xb641('0x6')]('channel',_0x923427);this[_0xb641('0x6')](_0xb641('0x7'),_0x923427[_0xb641('0x8')](/\/|-/)[0x1]);}}},'membername':{'type':Sequelize[_0xb641('0x5')]},'calleridnum':{'type':Sequelize[_0xb641('0x5')]},'calleridname':{'type':Sequelize[_0xb641('0x5')]},'connectedlinenum':{'type':Sequelize['STRING']},'connectedlinename':{'type':Sequelize['STRING']},'accountcode':{'type':Sequelize[_0xb641('0x5')]},'context':{'type':Sequelize[_0xb641('0x5')]},'exten':{'type':Sequelize[_0xb641('0x5')]},'value':{'type':Sequelize[_0xb641('0x5')]},'type':{'type':Sequelize[_0xb641('0x5')]},'rating':{'type':Sequelize[_0xb641('0x9')],'validate':{'max':0x5,'min':0x0}},'queue':{'type':Sequelize[_0xb641('0x5')]},'userDisposition':{'type':Sequelize[_0xb641('0x5')]},'createdAt':{'type':Sequelize[_0xb641('0xa')],'get':function(){return moment(this['getDataValue']('createdAt'))['format'](_0xb641('0xb'))[_0xb641('0xc')]();}},'updatedAt':{'type':Sequelize[_0xb641('0xa')],'get':function(){return moment(this[_0xb641('0x3')](_0xb641('0xd')))[_0xb641('0xe')](_0xb641('0xb'))[_0xb641('0xc')]();}}};
\ No newline at end of file