Built motion from commit 7ab0e143.|2.5.49
[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 _0x54f1=['DEFAULT\x20PAUSE','LOGIN,\x20PAUSE,\x20TALKING','INTEGER','DATE','enterAt','seconds','exitAt','setDataValue','duration','talk:[inbound,\x20outbound],\x20pause:[reason]','talk:[start]','talk:[destination]','talk:[dial\x20string]','talk:[queue]','moment','exports','STRING'];(function(_0x1c2502,_0x2ec27f){var _0x3ca0b1=function(_0x203178){while(--_0x203178){_0x1c2502['push'](_0x1c2502['shift']());}};_0x3ca0b1(++_0x2ec27f);}(_0x54f1,0xb8));var _0x154f=function(_0x186666,_0x178f2c){_0x186666=_0x186666-0x0;var _0x465142=_0x54f1[_0x186666];return _0x465142;};'use strict';var Sequelize=require('sequelize');var moment=require(_0x154f('0x0'));module[_0x154f('0x1')]={'channel':{'type':Sequelize[_0x154f('0x2')]},'membername':{'type':Sequelize[_0x154f('0x2')]},'interface':{'type':Sequelize['STRING']},'type':{'type':Sequelize[_0x154f('0x2')],'defaultValue':_0x154f('0x3'),'comment':_0x154f('0x4')},'duration':{'type':Sequelize[_0x154f('0x5')]},'enterAt':{'type':Sequelize[_0x154f('0x6')]},'exitAt':{'type':Sequelize['DATE'],'set':function(_0x248125){var _0x8baad6=moment(_0x248125);var _0x1e975b=moment(this['getDataValue'](_0x154f('0x7')));var _0x26bba4=_0x8baad6['diff'](_0x1e975b,_0x154f('0x8'));this['setDataValue'](_0x154f('0x9'),_0x248125);this[_0x154f('0xa')](_0x154f('0xb'),_0x26bba4>=0x0?_0x26bba4:null);}},'data1':{'type':Sequelize['STRING'],'comment':_0x154f('0xc')},'data2':{'type':Sequelize[_0x154f('0x2')],'comment':_0x154f('0xd')},'data3':{'type':Sequelize[_0x154f('0x2')],'comment':_0x154f('0xe')},'data4':{'type':Sequelize['STRING'],'comment':_0x154f('0xf')},'data5':{'type':Sequelize[_0x154f('0x2')],'comment':_0x154f('0x10')},'role':{'type':Sequelize[_0x154f('0x2')]},'internal':{'type':Sequelize[_0x154f('0x5')]},'uniqueid':{'type':Sequelize[_0x154f('0x2')]}};