Built motion from commit ba71417a.|2.6.28
[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 _0xa79a=['talk:[start]','talk:[dial\x20string]','talk:[queue]','sequelize','exports','STRING','DEFAULT\x20PAUSE','LOGIN,\x20PAUSE,\x20TALKING','INTEGER','DATE','enterAt','diff','seconds','setDataValue','talk:[inbound,\x20outbound],\x20pause:[reason]'];(function(_0x455c6c,_0x1e78b7){var _0x488242=function(_0x3e8fb0){while(--_0x3e8fb0){_0x455c6c['push'](_0x455c6c['shift']());}};_0x488242(++_0x1e78b7);}(_0xa79a,0x12f));var _0xaa79=function(_0x3d7394,_0x34d158){_0x3d7394=_0x3d7394-0x0;var _0x532551=_0xa79a[_0x3d7394];return _0x532551;};'use strict';var Sequelize=require(_0xaa79('0x0'));var moment=require('moment');module[_0xaa79('0x1')]={'channel':{'type':Sequelize[_0xaa79('0x2')]},'membername':{'type':Sequelize[_0xaa79('0x2')]},'interface':{'type':Sequelize[_0xaa79('0x2')]},'type':{'type':Sequelize['STRING'],'defaultValue':_0xaa79('0x3'),'comment':_0xaa79('0x4')},'duration':{'type':Sequelize[_0xaa79('0x5')]},'enterAt':{'type':Sequelize[_0xaa79('0x6')]},'exitAt':{'type':Sequelize[_0xaa79('0x6')],'set':function(_0x844d0c){var _0x4d456f=moment(_0x844d0c);var _0x257971=moment(this['getDataValue'](_0xaa79('0x7')));var _0x3833ee=_0x4d456f[_0xaa79('0x8')](_0x257971,_0xaa79('0x9'));this[_0xaa79('0xa')]('exitAt',_0x844d0c);this['setDataValue']('duration',_0x3833ee>=0x0?_0x3833ee:null);}},'data1':{'type':Sequelize['STRING'],'comment':_0xaa79('0xb')},'data2':{'type':Sequelize[_0xaa79('0x2')],'comment':_0xaa79('0xc')},'data3':{'type':Sequelize[_0xaa79('0x2')],'comment':'talk:[destination]'},'data4':{'type':Sequelize['STRING'],'comment':_0xaa79('0xd')},'data5':{'type':Sequelize['STRING'],'comment':_0xaa79('0xe')},'role':{'type':Sequelize[_0xaa79('0x2')]},'internal':{'type':Sequelize[_0xaa79('0x5')]},'uniqueid':{'type':Sequelize['STRING']}};