b99fdcc6f8d4babe4a3e000c57bea07d10827072
[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 _0xf090=['channel','split','INTEGER','DATE','createdAt','format','MM-DD-YYYY\x20HH:mm','toString','updatedAt','sequelize','moment','path','getDataValue','extname','value','STRING','setDataValue'];(function(_0x6f5598,_0xabeb74){var _0x1e1325=function(_0x1da246){while(--_0x1da246){_0x6f5598['push'](_0x6f5598['shift']());}};_0x1e1325(++_0xabeb74);}(_0xf090,0xf7));var _0x0f09=function(_0xb66e2d,_0x470df1){_0xb66e2d=_0xb66e2d-0x0;var _0x440050=_0xf090[_0xb66e2d];return _0x440050;};'use strict';var Sequelize=require(_0x0f09('0x0'));var moment=require(_0x0f09('0x1'));var path=require(_0x0f09('0x2'));module['exports']={'format':{'type':Sequelize['VIRTUAL'],'get':function(){return this[_0x0f09('0x3')]('value')?path[_0x0f09('0x4')](this[_0x0f09('0x3')](_0x0f09('0x5'))):undefined;}},'uniqueid':{'type':Sequelize[_0x0f09('0x6')]},'channel':{'type':Sequelize['STRING'],'set':function(_0x643e54){if(_0x643e54){this[_0x0f09('0x7')](_0x0f09('0x8'),_0x643e54);this[_0x0f09('0x7')]('membername',_0x643e54[_0x0f09('0x9')](/\/|-/)[0x1]);}}},'membername':{'type':Sequelize[_0x0f09('0x6')]},'calleridnum':{'type':Sequelize[_0x0f09('0x6')]},'calleridname':{'type':Sequelize[_0x0f09('0x6')]},'connectedlinenum':{'type':Sequelize[_0x0f09('0x6')]},'connectedlinename':{'type':Sequelize['STRING']},'accountcode':{'type':Sequelize[_0x0f09('0x6')]},'context':{'type':Sequelize['STRING']},'exten':{'type':Sequelize[_0x0f09('0x6')]},'value':{'type':Sequelize[_0x0f09('0x6')]},'type':{'type':Sequelize[_0x0f09('0x6')]},'rating':{'type':Sequelize[_0x0f09('0xa')],'validate':{'max':0x5,'min':0x0}},'queue':{'type':Sequelize[_0x0f09('0x6')]},'userDisposition':{'type':Sequelize['STRING']},'createdAt':{'type':Sequelize[_0x0f09('0xb')],'get':function(){return moment(this[_0x0f09('0x3')](_0x0f09('0xc')))[_0x0f09('0xd')](_0x0f09('0xe'))[_0x0f09('0xf')]();}},'updatedAt':{'type':Sequelize['DATE'],'get':function(){return moment(this[_0x0f09('0x3')](_0x0f09('0x10')))['format']('MM-DD-YYYY\x20HH:mm')[_0x0f09('0xf')]();}}};