1 // *************************************************************************
3 // * xCALLY Motion - The Omnichannel Contact Center *
4 // * Copyright (c) Xenialab s.r.l. All Rights Reserved *
6 // *************************************************************************
8 // * Email: info@xcally.com *
9 // * Website: https://www.xcally.com *
11 // *************************************************************************
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. *
17 // *************************************************************************
18 var _0xeffe=['exitAt','duration','talk:[inbound,\x20outbound],\x20pause:[reason]','talk:[start]','talk:[queue]','moment','exports','STRING','INTEGER','DATE','getDataValue','enterAt','diff','seconds','setDataValue'];(function(_0x5d78f0,_0x3784f9){var _0x4d1012=function(_0x23d0ba){while(--_0x23d0ba){_0x5d78f0['push'](_0x5d78f0['shift']());}};_0x4d1012(++_0x3784f9);}(_0xeffe,0x7d));var _0xeeff=function(_0x17d9e3,_0x1f969c){_0x17d9e3=_0x17d9e3-0x0;var _0x14192d=_0xeffe[_0x17d9e3];return _0x14192d;};'use strict';var Sequelize=require('sequelize');var moment=require(_0xeeff('0x0'));module[_0xeeff('0x1')]={'channel':{'type':Sequelize[_0xeeff('0x2')]},'membername':{'type':Sequelize[_0xeeff('0x2')]},'interface':{'type':Sequelize['STRING']},'type':{'type':Sequelize['STRING'],'defaultValue':'DEFAULT\x20PAUSE','comment':'LOGIN,\x20PAUSE,\x20TALKING'},'duration':{'type':Sequelize[_0xeeff('0x3')]},'enterAt':{'type':Sequelize[_0xeeff('0x4')]},'exitAt':{'type':Sequelize[_0xeeff('0x4')],'set':function(_0x21e6dd){var _0x215bf4=moment(_0x21e6dd);var _0x4a0534=moment(this[_0xeeff('0x5')](_0xeeff('0x6')));var _0x34ca6a=_0x215bf4[_0xeeff('0x7')](_0x4a0534,_0xeeff('0x8'));this[_0xeeff('0x9')](_0xeeff('0xa'),_0x21e6dd);this[_0xeeff('0x9')](_0xeeff('0xb'),_0x34ca6a||null);}},'data1':{'type':Sequelize[_0xeeff('0x2')],'comment':_0xeeff('0xc')},'data2':{'type':Sequelize['STRING'],'comment':_0xeeff('0xd')},'data3':{'type':Sequelize['STRING'],'comment':'talk:[destination]'},'data4':{'type':Sequelize[_0xeeff('0x2')],'comment':'talk:[dial\x20string]'},'data5':{'type':Sequelize[_0xeeff('0x2')],'comment':_0xeeff('0xe')},'role':{'type':Sequelize[_0xeeff('0x2')]},'internal':{'type':Sequelize['INTEGER']},'uniqueid':{'type':Sequelize['STRING']}};