5b9474321472e3da062710445b04aff31477118c
[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 _0x9d6d=['LOGIN,\x20PAUSE,\x20TALKING','getDataValue','enterAt','seconds','setDataValue','exitAt','duration','talk:[inbound,\x20outbound],\x20pause:[reason]','talk:[start]','talk:[destination]','talk:[dial\x20string]','talk:[queue]','exports','STRING','DEFAULT\x20PAUSE'];(function(_0x47739a,_0x3d68f9){var _0x49a624=function(_0x49aa3f){while(--_0x49aa3f){_0x47739a['push'](_0x47739a['shift']());}};_0x49a624(++_0x3d68f9);}(_0x9d6d,0xc0));var _0xd9d6=function(_0x501510,_0x61caa9){_0x501510=_0x501510-0x0;var _0x1e6ee5=_0x9d6d[_0x501510];return _0x1e6ee5;};'use strict';var Sequelize=require('sequelize');var moment=require('moment');module[_0xd9d6('0x0')]={'channel':{'type':Sequelize[_0xd9d6('0x1')]},'membername':{'type':Sequelize[_0xd9d6('0x1')]},'interface':{'type':Sequelize[_0xd9d6('0x1')]},'type':{'type':Sequelize['STRING'],'defaultValue':_0xd9d6('0x2'),'comment':_0xd9d6('0x3')},'duration':{'type':Sequelize['INTEGER']},'enterAt':{'type':Sequelize['DATE']},'exitAt':{'type':Sequelize['DATE'],'set':function(_0x4b523e){var _0x22c2f7=moment(_0x4b523e);var _0x5c18a7=moment(this[_0xd9d6('0x4')](_0xd9d6('0x5')));var _0x199872=_0x22c2f7['diff'](_0x5c18a7,_0xd9d6('0x6'));this[_0xd9d6('0x7')](_0xd9d6('0x8'),_0x4b523e);this[_0xd9d6('0x7')](_0xd9d6('0x9'),_0x199872>=0x0?_0x199872:null);}},'data1':{'type':Sequelize[_0xd9d6('0x1')],'comment':_0xd9d6('0xa')},'data2':{'type':Sequelize['STRING'],'comment':_0xd9d6('0xb')},'data3':{'type':Sequelize[_0xd9d6('0x1')],'comment':_0xd9d6('0xc')},'data4':{'type':Sequelize['STRING'],'comment':_0xd9d6('0xd')},'data5':{'type':Sequelize['STRING'],'comment':_0xd9d6('0xe')},'role':{'type':Sequelize[_0xd9d6('0x1')]},'internal':{'type':Sequelize['INTEGER']},'uniqueid':{'type':Sequelize[_0xd9d6('0x1')]}};