233e0baaa19a5c770d45453271e5398030aa18f9
[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 _0x895a=['diff','seconds','setDataValue','exitAt','duration','talk:[start]','talk:[destination]','talk:[dial\x20string]','talk:[queue]','sequelize','moment','exports','STRING','LOGIN,\x20PAUSE,\x20TALKING','INTEGER','DATE','enterAt'];(function(_0x65c903,_0x41e920){var _0x23e1d7=function(_0x4279cd){while(--_0x4279cd){_0x65c903['push'](_0x65c903['shift']());}};_0x23e1d7(++_0x41e920);}(_0x895a,0x119));var _0xa895=function(_0x30a548,_0x32cac2){_0x30a548=_0x30a548-0x0;var _0x5d780c=_0x895a[_0x30a548];return _0x5d780c;};'use strict';var Sequelize=require(_0xa895('0x0'));var moment=require(_0xa895('0x1'));module[_0xa895('0x2')]={'channel':{'type':Sequelize[_0xa895('0x3')]},'membername':{'type':Sequelize[_0xa895('0x3')]},'interface':{'type':Sequelize[_0xa895('0x3')]},'type':{'type':Sequelize[_0xa895('0x3')],'defaultValue':'DEFAULT\x20PAUSE','comment':_0xa895('0x4')},'duration':{'type':Sequelize[_0xa895('0x5')]},'enterAt':{'type':Sequelize[_0xa895('0x6')]},'exitAt':{'type':Sequelize[_0xa895('0x6')],'set':function(_0x2aaeb1){var _0x4a7c4d=moment(_0x2aaeb1);var _0x334442=moment(this['getDataValue'](_0xa895('0x7')));var _0x5584ee=_0x4a7c4d[_0xa895('0x8')](_0x334442,_0xa895('0x9'));this[_0xa895('0xa')](_0xa895('0xb'),_0x2aaeb1);this['setDataValue'](_0xa895('0xc'),_0x5584ee||null);}},'data1':{'type':Sequelize[_0xa895('0x3')],'comment':'talk:[inbound,\x20outbound],\x20pause:[reason]'},'data2':{'type':Sequelize[_0xa895('0x3')],'comment':_0xa895('0xd')},'data3':{'type':Sequelize[_0xa895('0x3')],'comment':_0xa895('0xe')},'data4':{'type':Sequelize['STRING'],'comment':_0xa895('0xf')},'data5':{'type':Sequelize[_0xa895('0x3')],'comment':_0xa895('0x10')},'role':{'type':Sequelize[_0xa895('0x3')]},'internal':{'type':Sequelize[_0xa895('0x5')]},'uniqueid':{'type':Sequelize[_0xa895('0x3')]}};