04b270b93ecb03aff2a92e3617f0b95f62eabb52
[motion2.git] / server / api / jscriptySessionReport / jscriptySessionReport.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 _0x340e=['STRING','sequelize','DATE','setDataValue','format','YYYY-MM-DD\x20HH:mm:ss'];(function(_0x2860e8,_0x5c92de){var _0x597771=function(_0x4f79d6){while(--_0x4f79d6){_0x2860e8['push'](_0x2860e8['shift']());}};_0x597771(++_0x5c92de);}(_0x340e,0x1c3));var _0xe340=function(_0x180308,_0x10ece8){_0x180308=_0x180308-0x0;var _0x71a761=_0x340e[_0x180308];return _0x71a761;};'use strict';var moment=require('moment');var Sequelize=require(_0xe340('0x0'));module['exports']={'starttime':{'type':Sequelize[_0xe340('0x1')],'set':function(_0x38db86){this['setDataValue']('starttime',_0x38db86);this[_0xe340('0x2')]('endtime',moment()[_0xe340('0x3')](_0xe340('0x4')));}},'endtime':{'type':Sequelize[_0xe340('0x1')]},'membername':{'type':Sequelize[_0xe340('0x5')]},'projectname':{'type':Sequelize[_0xe340('0x5')]},'queue':{'type':Sequelize[_0xe340('0x5')]},'uniqueid':{'type':Sequelize[_0xe340('0x5')]},'calleridname':{'type':Sequelize[_0xe340('0x5')]},'calleridnum':{'type':Sequelize[_0xe340('0x5')]},'completed':{'type':Sequelize['BOOLEAN'],'defaultValue':![]}};