cdb287103d9ca1b2613a43a8eb48f108060fdcbe
[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 _0x9c61=['sequelize','moment','exports','STRING','LOGIN,\x20PAUSE,\x20TALKING','INTEGER','DATE','getDataValue','enterAt','seconds','talk:[inbound,\x20outbound],\x20pause:[reason]','talk:[destination]','talk:[queue]'];(function(_0x587c78,_0x3aa597){var _0xe92b85=function(_0x3289e8){while(--_0x3289e8){_0x587c78['push'](_0x587c78['shift']());}};_0xe92b85(++_0x3aa597);}(_0x9c61,0x145));var _0x19c6=function(_0x15a033,_0x379888){_0x15a033=_0x15a033-0x0;var _0x44b426=_0x9c61[_0x15a033];return _0x44b426;};'use strict';var Sequelize=require(_0x19c6('0x0'));var moment=require(_0x19c6('0x1'));module[_0x19c6('0x2')]={'channel':{'type':Sequelize[_0x19c6('0x3')]},'membername':{'type':Sequelize[_0x19c6('0x3')]},'interface':{'type':Sequelize[_0x19c6('0x3')]},'type':{'type':Sequelize[_0x19c6('0x3')],'defaultValue':'DEFAULT\x20PAUSE','comment':_0x19c6('0x4')},'duration':{'type':Sequelize[_0x19c6('0x5')]},'enterAt':{'type':Sequelize['DATE']},'exitAt':{'type':Sequelize[_0x19c6('0x6')],'set':function(_0x335ea6){var _0x545a26=moment(_0x335ea6);var _0x35f18a=moment(this[_0x19c6('0x7')](_0x19c6('0x8')));var _0x38bca4=_0x545a26['diff'](_0x35f18a,_0x19c6('0x9'));this['setDataValue']('exitAt',_0x335ea6);this['setDataValue']('duration',_0x38bca4>=0x0?_0x38bca4:null);}},'data1':{'type':Sequelize['STRING'],'comment':_0x19c6('0xa')},'data2':{'type':Sequelize[_0x19c6('0x3')],'comment':'talk:[start]'},'data3':{'type':Sequelize[_0x19c6('0x3')],'comment':_0x19c6('0xb')},'data4':{'type':Sequelize['STRING'],'comment':'talk:[dial\x20string]'},'data5':{'type':Sequelize[_0x19c6('0x3')],'comment':_0x19c6('0xc')},'role':{'type':Sequelize[_0x19c6('0x3')]},'internal':{'type':Sequelize[_0x19c6('0x5')]},'uniqueid':{'type':Sequelize[_0x19c6('0x3')]}};