b0c1c5630c44b9a91c4f3d3416cb62e947d2f7c8
[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 _0x83a0=['DATE','getDataValue','enterAt','diff','seconds','setDataValue','exitAt','talk:[inbound,\x20outbound],\x20pause:[reason]','talk:[start]','moment','exports','STRING','LOGIN,\x20PAUSE,\x20TALKING','INTEGER'];(function(_0x5a908c,_0x336411){var _0x21fd0a=function(_0x1db19c){while(--_0x1db19c){_0x5a908c['push'](_0x5a908c['shift']());}};_0x21fd0a(++_0x336411);}(_0x83a0,0x79));var _0x083a=function(_0x1a71dd,_0x208b43){_0x1a71dd=_0x1a71dd-0x0;var _0x5d3c69=_0x83a0[_0x1a71dd];return _0x5d3c69;};'use strict';var Sequelize=require('sequelize');var moment=require(_0x083a('0x0'));module[_0x083a('0x1')]={'channel':{'type':Sequelize[_0x083a('0x2')]},'membername':{'type':Sequelize[_0x083a('0x2')]},'interface':{'type':Sequelize['STRING']},'type':{'type':Sequelize[_0x083a('0x2')],'defaultValue':'DEFAULT\x20PAUSE','comment':_0x083a('0x3')},'duration':{'type':Sequelize[_0x083a('0x4')]},'enterAt':{'type':Sequelize[_0x083a('0x5')]},'exitAt':{'type':Sequelize['DATE'],'set':function(_0x42766f){var _0x1bd73c=moment(_0x42766f);var _0xa2fdb1=moment(this[_0x083a('0x6')](_0x083a('0x7')));var _0x483571=_0x1bd73c[_0x083a('0x8')](_0xa2fdb1,_0x083a('0x9'));this[_0x083a('0xa')](_0x083a('0xb'),_0x42766f);this['setDataValue']('duration',_0x483571||null);}},'data1':{'type':Sequelize[_0x083a('0x2')],'comment':_0x083a('0xc')},'data2':{'type':Sequelize[_0x083a('0x2')],'comment':_0x083a('0xd')},'data3':{'type':Sequelize['STRING'],'comment':'talk:[destination]'},'data4':{'type':Sequelize['STRING'],'comment':'talk:[dial\x20string]'},'data5':{'type':Sequelize[_0x083a('0x2')],'comment':'talk:[queue]'},'role':{'type':Sequelize[_0x083a('0x2')]},'internal':{'type':Sequelize[_0x083a('0x4')]},'uniqueid':{'type':Sequelize[_0x083a('0x2')]}};