31915ff4edfea655ece34117db0e10b705f1e53b
[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 _0x113e=['talk:[destination]','talk:[dial\x20string]','moment','STRING','LOGIN,\x20PAUSE,\x20TALKING','INTEGER','DATE','enterAt','diff','setDataValue','duration','talk:[inbound,\x20outbound],\x20pause:[reason]','talk:[start]'];(function(_0x4f75b2,_0x5961fa){var _0x172be2=function(_0x3e971c){while(--_0x3e971c){_0x4f75b2['push'](_0x4f75b2['shift']());}};_0x172be2(++_0x5961fa);}(_0x113e,0x91));var _0xe113=function(_0x4e7d25,_0x58285f){_0x4e7d25=_0x4e7d25-0x0;var _0x526fe6=_0x113e[_0x4e7d25];return _0x526fe6;};'use strict';var Sequelize=require('sequelize');var moment=require(_0xe113('0x0'));module['exports']={'channel':{'type':Sequelize[_0xe113('0x1')]},'membername':{'type':Sequelize[_0xe113('0x1')]},'interface':{'type':Sequelize[_0xe113('0x1')]},'type':{'type':Sequelize[_0xe113('0x1')],'defaultValue':'DEFAULT\x20PAUSE','comment':_0xe113('0x2')},'duration':{'type':Sequelize[_0xe113('0x3')]},'enterAt':{'type':Sequelize[_0xe113('0x4')]},'exitAt':{'type':Sequelize['DATE'],'set':function(_0x5df782){var _0x5a2b29=moment(_0x5df782);var _0x29f29a=moment(this['getDataValue'](_0xe113('0x5')));var _0x9582cb=_0x5a2b29[_0xe113('0x6')](_0x29f29a,'seconds');this[_0xe113('0x7')]('exitAt',_0x5df782);this['setDataValue'](_0xe113('0x8'),_0x9582cb>=0x0?_0x9582cb:null);}},'data1':{'type':Sequelize[_0xe113('0x1')],'comment':_0xe113('0x9')},'data2':{'type':Sequelize[_0xe113('0x1')],'comment':_0xe113('0xa')},'data3':{'type':Sequelize[_0xe113('0x1')],'comment':_0xe113('0xb')},'data4':{'type':Sequelize[_0xe113('0x1')],'comment':_0xe113('0xc')},'data5':{'type':Sequelize['STRING'],'comment':'talk:[queue]'},'role':{'type':Sequelize[_0xe113('0x1')]},'internal':{'type':Sequelize[_0xe113('0x3')]},'uniqueid':{'type':Sequelize[_0xe113('0x1')]}};