1f043533d9056019415201d8a4d92bfdf3bd3043
[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 _0xff57=['talk:[dial\x20string]','sequelize','moment','exports','STRING','LOGIN,\x20PAUSE,\x20TALKING','DATE','diff','seconds','setDataValue','exitAt','duration','talk:[inbound,\x20outbound],\x20pause:[reason]','talk:[start]','talk:[destination]'];(function(_0x6f3647,_0x58cad9){var _0x4382bf=function(_0x41f07f){while(--_0x41f07f){_0x6f3647['push'](_0x6f3647['shift']());}};_0x4382bf(++_0x58cad9);}(_0xff57,0x1f0));var _0x7ff5=function(_0x1da10a,_0x1fe948){_0x1da10a=_0x1da10a-0x0;var _0x5aea64=_0xff57[_0x1da10a];return _0x5aea64;};'use strict';var Sequelize=require(_0x7ff5('0x0'));var moment=require(_0x7ff5('0x1'));module[_0x7ff5('0x2')]={'channel':{'type':Sequelize['STRING']},'membername':{'type':Sequelize[_0x7ff5('0x3')]},'interface':{'type':Sequelize[_0x7ff5('0x3')]},'type':{'type':Sequelize[_0x7ff5('0x3')],'defaultValue':'DEFAULT\x20PAUSE','comment':_0x7ff5('0x4')},'duration':{'type':Sequelize['INTEGER']},'enterAt':{'type':Sequelize['DATE']},'exitAt':{'type':Sequelize[_0x7ff5('0x5')],'set':function(_0x3d90fd){var _0xa7f83c=moment(_0x3d90fd);var _0x41cb9b=moment(this['getDataValue']('enterAt'));var _0x293f0a=_0xa7f83c[_0x7ff5('0x6')](_0x41cb9b,_0x7ff5('0x7'));this[_0x7ff5('0x8')](_0x7ff5('0x9'),_0x3d90fd);this[_0x7ff5('0x8')](_0x7ff5('0xa'),_0x293f0a||null);}},'data1':{'type':Sequelize[_0x7ff5('0x3')],'comment':_0x7ff5('0xb')},'data2':{'type':Sequelize['STRING'],'comment':_0x7ff5('0xc')},'data3':{'type':Sequelize[_0x7ff5('0x3')],'comment':_0x7ff5('0xd')},'data4':{'type':Sequelize[_0x7ff5('0x3')],'comment':_0x7ff5('0xe')},'data5':{'type':Sequelize[_0x7ff5('0x3')],'comment':'talk:[queue]'},'role':{'type':Sequelize[_0x7ff5('0x3')]},'internal':{'type':Sequelize['INTEGER']},'uniqueid':{'type':Sequelize['STRING']}};