Built motion from commit da617fac.|2.6.6
[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 _0x8381=['talk:[start]','talk:[dial\x20string]','talk:[queue]','moment','STRING','DEFAULT\x20PAUSE','LOGIN,\x20PAUSE,\x20TALKING','INTEGER','DATE','getDataValue','enterAt','exitAt','setDataValue','duration'];(function(_0x11005e,_0x20c3d2){var _0x29338f=function(_0x3384e9){while(--_0x3384e9){_0x11005e['push'](_0x11005e['shift']());}};_0x29338f(++_0x20c3d2);}(_0x8381,0x153));var _0x1838=function(_0xe9db76,_0x2937fb){_0xe9db76=_0xe9db76-0x0;var _0x4579ab=_0x8381[_0xe9db76];return _0x4579ab;};'use strict';var Sequelize=require('sequelize');var moment=require(_0x1838('0x0'));module['exports']={'channel':{'type':Sequelize[_0x1838('0x1')]},'membername':{'type':Sequelize[_0x1838('0x1')]},'interface':{'type':Sequelize[_0x1838('0x1')]},'type':{'type':Sequelize[_0x1838('0x1')],'defaultValue':_0x1838('0x2'),'comment':_0x1838('0x3')},'duration':{'type':Sequelize[_0x1838('0x4')]},'enterAt':{'type':Sequelize[_0x1838('0x5')]},'exitAt':{'type':Sequelize[_0x1838('0x5')],'set':function(_0x5a9c5e){var _0x3f02cc=moment(_0x5a9c5e);var _0x436298=moment(this[_0x1838('0x6')](_0x1838('0x7')));var _0x3c4470=_0x3f02cc['diff'](_0x436298,'seconds');this['setDataValue'](_0x1838('0x8'),_0x5a9c5e);this[_0x1838('0x9')](_0x1838('0xa'),_0x3c4470>=0x0?_0x3c4470:null);}},'data1':{'type':Sequelize['STRING'],'comment':'talk:[inbound,\x20outbound],\x20pause:[reason]'},'data2':{'type':Sequelize[_0x1838('0x1')],'comment':_0x1838('0xb')},'data3':{'type':Sequelize['STRING'],'comment':'talk:[destination]'},'data4':{'type':Sequelize['STRING'],'comment':_0x1838('0xc')},'data5':{'type':Sequelize[_0x1838('0x1')],'comment':_0x1838('0xd')},'role':{'type':Sequelize[_0x1838('0x1')]},'internal':{'type':Sequelize[_0x1838('0x4')]},'uniqueid':{'type':Sequelize['STRING']}};