dbcd4c8cf139bdd196ea33ed3f3c9d46200f6aaa
[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 _0xafd8=['diff','seconds','setDataValue','duration','talk:[inbound,\x20outbound],\x20pause:[reason]','talk:[start]','talk:[destination]','talk:[queue]','sequelize','moment','STRING','INTEGER','DATE','getDataValue','enterAt'];(function(_0x2064e5,_0x4f6fa2){var _0x21a233=function(_0x1b2491){while(--_0x1b2491){_0x2064e5['push'](_0x2064e5['shift']());}};_0x21a233(++_0x4f6fa2);}(_0xafd8,0x71));var _0x8afd=function(_0x3f9631,_0x51ffcb){_0x3f9631=_0x3f9631-0x0;var _0x242d84=_0xafd8[_0x3f9631];return _0x242d84;};'use strict';var Sequelize=require(_0x8afd('0x0'));var moment=require(_0x8afd('0x1'));module['exports']={'channel':{'type':Sequelize['STRING']},'membername':{'type':Sequelize['STRING']},'interface':{'type':Sequelize[_0x8afd('0x2')]},'type':{'type':Sequelize[_0x8afd('0x2')],'defaultValue':'DEFAULT\x20PAUSE','comment':'LOGIN,\x20PAUSE,\x20TALKING'},'duration':{'type':Sequelize[_0x8afd('0x3')]},'enterAt':{'type':Sequelize[_0x8afd('0x4')]},'exitAt':{'type':Sequelize[_0x8afd('0x4')],'set':function(_0x57aee3){var _0x1ebf22=moment(_0x57aee3);var _0x5bd6a2=moment(this[_0x8afd('0x5')](_0x8afd('0x6')));var _0x57ddd9=_0x1ebf22[_0x8afd('0x7')](_0x5bd6a2,_0x8afd('0x8'));this[_0x8afd('0x9')]('exitAt',_0x57aee3);this[_0x8afd('0x9')](_0x8afd('0xa'),_0x57ddd9||null);}},'data1':{'type':Sequelize[_0x8afd('0x2')],'comment':_0x8afd('0xb')},'data2':{'type':Sequelize[_0x8afd('0x2')],'comment':_0x8afd('0xc')},'data3':{'type':Sequelize[_0x8afd('0x2')],'comment':_0x8afd('0xd')},'data4':{'type':Sequelize[_0x8afd('0x2')],'comment':'talk:[dial\x20string]'},'data5':{'type':Sequelize['STRING'],'comment':_0x8afd('0xe')},'role':{'type':Sequelize[_0x8afd('0x2')]},'internal':{'type':Sequelize['INTEGER']},'uniqueid':{'type':Sequelize['STRING']}};