004c177f076f00af9e8212dee1e15779a089be75
[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 _0xa1ee=['DATE','enterAt','diff','seconds','setDataValue','exitAt','duration','talk:[inbound,\x20outbound],\x20pause:[reason]','talk:[start]','talk:[destination]','talk:[dial\x20string]','talk:[queue]','sequelize','moment','exports','STRING','LOGIN,\x20PAUSE,\x20TALKING','INTEGER'];(function(_0x54e856,_0x313d5c){var _0x124873=function(_0x48547e){while(--_0x48547e){_0x54e856['push'](_0x54e856['shift']());}};_0x124873(++_0x313d5c);}(_0xa1ee,0x1bc));var _0xea1e=function(_0x7ad6cb,_0xffee6c){_0x7ad6cb=_0x7ad6cb-0x0;var _0x22a0ba=_0xa1ee[_0x7ad6cb];return _0x22a0ba;};'use strict';var Sequelize=require(_0xea1e('0x0'));var moment=require(_0xea1e('0x1'));module[_0xea1e('0x2')]={'channel':{'type':Sequelize['STRING']},'membername':{'type':Sequelize[_0xea1e('0x3')]},'interface':{'type':Sequelize[_0xea1e('0x3')]},'type':{'type':Sequelize[_0xea1e('0x3')],'defaultValue':'DEFAULT\x20PAUSE','comment':_0xea1e('0x4')},'duration':{'type':Sequelize[_0xea1e('0x5')]},'enterAt':{'type':Sequelize[_0xea1e('0x6')]},'exitAt':{'type':Sequelize[_0xea1e('0x6')],'set':function(_0x2cbdd2){var _0x22efd7=moment(_0x2cbdd2);var _0x3091ea=moment(this['getDataValue'](_0xea1e('0x7')));var _0x158c06=_0x22efd7[_0xea1e('0x8')](_0x3091ea,_0xea1e('0x9'));this[_0xea1e('0xa')](_0xea1e('0xb'),_0x2cbdd2);this[_0xea1e('0xa')](_0xea1e('0xc'),_0x158c06||null);}},'data1':{'type':Sequelize['STRING'],'comment':_0xea1e('0xd')},'data2':{'type':Sequelize[_0xea1e('0x3')],'comment':_0xea1e('0xe')},'data3':{'type':Sequelize['STRING'],'comment':_0xea1e('0xf')},'data4':{'type':Sequelize[_0xea1e('0x3')],'comment':_0xea1e('0x10')},'data5':{'type':Sequelize['STRING'],'comment':_0xea1e('0x11')},'role':{'type':Sequelize[_0xea1e('0x3')]},'internal':{'type':Sequelize[_0xea1e('0x5')]},'uniqueid':{'type':Sequelize[_0xea1e('0x3')]}};