Built motion from commit 47436d59.|2.6.7
[motion2.git] / server / api / memberReport / memberReport.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 _0xc7e9=['exitAt','duration','talk:[inbound,\x20outbound],\x20pause:[reason]','talk:[start]','talk:[destination]','talk:[dial\x20string]','talk:[queue]','INTEGER','sequelize','moment','STRING','DEFAULT\x20PAUSE','LOGIN,\x20PAUSE,\x20TALKING','getDataValue','enterAt','setDataValue'];(function(_0x21379,_0xf1e228){var _0x2d3752=function(_0x4bd911){while(--_0x4bd911){_0x21379['push'](_0x21379['shift']());}};_0x2d3752(++_0xf1e228);}(_0xc7e9,0x1b8));var _0x9c7e=function(_0x29d94e,_0xf386d6){_0x29d94e=_0x29d94e-0x0;var _0x106237=_0xc7e9[_0x29d94e];return _0x106237;};'use strict';var Sequelize=require(_0x9c7e('0x0'));var moment=require(_0x9c7e('0x1'));module['exports']={'channel':{'type':Sequelize[_0x9c7e('0x2')]},'membername':{'type':Sequelize[_0x9c7e('0x2')]},'interface':{'type':Sequelize[_0x9c7e('0x2')]},'type':{'type':Sequelize[_0x9c7e('0x2')],'defaultValue':_0x9c7e('0x3'),'comment':_0x9c7e('0x4')},'duration':{'type':Sequelize['INTEGER']},'enterAt':{'type':Sequelize['DATE']},'exitAt':{'type':Sequelize['DATE'],'set':function(_0x1c80ba){var _0x226f40=moment(_0x1c80ba);var _0x1ca6b5=moment(this[_0x9c7e('0x5')](_0x9c7e('0x6')));var _0x3a8952=_0x226f40['diff'](_0x1ca6b5,'seconds');this[_0x9c7e('0x7')](_0x9c7e('0x8'),_0x1c80ba);this[_0x9c7e('0x7')](_0x9c7e('0x9'),_0x3a8952>=0x0?_0x3a8952:null);}},'data1':{'type':Sequelize[_0x9c7e('0x2')],'comment':_0x9c7e('0xa')},'data2':{'type':Sequelize[_0x9c7e('0x2')],'comment':_0x9c7e('0xb')},'data3':{'type':Sequelize[_0x9c7e('0x2')],'comment':_0x9c7e('0xc')},'data4':{'type':Sequelize[_0x9c7e('0x2')],'comment':_0x9c7e('0xd')},'data5':{'type':Sequelize[_0x9c7e('0x2')],'comment':_0x9c7e('0xe')},'role':{'type':Sequelize[_0x9c7e('0x2')]},'internal':{'type':Sequelize[_0x9c7e('0xf')]},'uniqueid':{'type':Sequelize[_0x9c7e('0x2')]}};