Built motion from commit (unavailable).|2.4.4
[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 _0x605c=['format','sequelize','moment','exports','getDataValue','value','extname','STRING','setDataValue','split','INTEGER','DATE','MM-DD-YYYY\x20HH:mm','toString','updatedAt'];(function(_0x55ba94,_0x585601){var _0x1bd2d1=function(_0xfa612c){while(--_0xfa612c){_0x55ba94['push'](_0x55ba94['shift']());}};_0x1bd2d1(++_0x585601);}(_0x605c,0xb5));var _0xc605=function(_0x43baac,_0x15a9df){_0x43baac=_0x43baac-0x0;var _0x4b91a9=_0x605c[_0x43baac];return _0x4b91a9;};'use strict';var Sequelize=require(_0xc605('0x0'));var moment=require(_0xc605('0x1'));var path=require('path');module[_0xc605('0x2')]={'format':{'type':Sequelize['VIRTUAL'],'get':function(){return this[_0xc605('0x3')](_0xc605('0x4'))?path[_0xc605('0x5')](this[_0xc605('0x3')](_0xc605('0x4'))):undefined;}},'uniqueid':{'type':Sequelize['STRING']},'channel':{'type':Sequelize[_0xc605('0x6')],'set':function(_0x572a4d){if(_0x572a4d){this[_0xc605('0x7')]('channel',_0x572a4d);this[_0xc605('0x7')]('membername',_0x572a4d[_0xc605('0x8')](/\/|-/)[0x1]);}}},'membername':{'type':Sequelize['STRING']},'calleridnum':{'type':Sequelize[_0xc605('0x6')]},'calleridname':{'type':Sequelize['STRING']},'connectedlinenum':{'type':Sequelize[_0xc605('0x6')]},'connectedlinename':{'type':Sequelize[_0xc605('0x6')]},'accountcode':{'type':Sequelize[_0xc605('0x6')]},'context':{'type':Sequelize[_0xc605('0x6')]},'exten':{'type':Sequelize[_0xc605('0x6')]},'value':{'type':Sequelize['STRING']},'type':{'type':Sequelize['STRING']},'rating':{'type':Sequelize[_0xc605('0x9')],'validate':{'max':0x5,'min':0x0}},'queue':{'type':Sequelize[_0xc605('0x6')]},'userDisposition':{'type':Sequelize['STRING']},'createdAt':{'type':Sequelize[_0xc605('0xa')],'get':function(){return moment(this[_0xc605('0x3')]('createdAt'))['format'](_0xc605('0xb'))[_0xc605('0xc')]();}},'updatedAt':{'type':Sequelize[_0xc605('0xa')],'get':function(){return moment(this['getDataValue'](_0xc605('0xd')))[_0xc605('0xe')](_0xc605('0xb'))['toString']();}}};