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 _0xa03f=['diff','seconds','setDataValue','exitAt','duration','talk:[inbound,\x20outbound],\x20pause:[reason]','talk:[destination]','STRING','LOGIN,\x20PAUSE,\x20TALKING','INTEGER','DATE','enterAt'];(function(_0x77d310,_0x2b2fe7){var _0x2cdce4=function(_0xbaa481){while(--_0xbaa481){_0x77d310['push'](_0x77d310['shift']());}};_0x2cdce4(++_0x2b2fe7);}(_0xa03f,0x8b));var _0xfa03=function(_0x497add,_0x275885){_0x497add=_0x497add-0x0;var _0x24c869=_0xa03f[_0x497add];return _0x24c869;};'use strict';var Sequelize=require('sequelize');var moment=require('moment');module['exports']={'channel':{'type':Sequelize[_0xfa03('0x0')]},'membername':{'type':Sequelize[_0xfa03('0x0')]},'interface':{'type':Sequelize['STRING']},'type':{'type':Sequelize[_0xfa03('0x0')],'defaultValue':'DEFAULT\x20PAUSE','comment':_0xfa03('0x1')},'duration':{'type':Sequelize[_0xfa03('0x2')]},'enterAt':{'type':Sequelize[_0xfa03('0x3')]},'exitAt':{'type':Sequelize[_0xfa03('0x3')],'set':function(_0x2b7d11){var _0x5db46e=moment(_0x2b7d11);var _0x2d4412=moment(this['getDataValue'](_0xfa03('0x4')));var _0x3576bc=_0x5db46e[_0xfa03('0x5')](_0x2d4412,_0xfa03('0x6'));this[_0xfa03('0x7')](_0xfa03('0x8'),_0x2b7d11);this[_0xfa03('0x7')](_0xfa03('0x9'),_0x3576bc||null);}},'data1':{'type':Sequelize[_0xfa03('0x0')],'comment':_0xfa03('0xa')},'data2':{'type':Sequelize[_0xfa03('0x0')],'comment':'talk:[start]'},'data3':{'type':Sequelize[_0xfa03('0x0')],'comment':_0xfa03('0xb')},'data4':{'type':Sequelize[_0xfa03('0x0')],'comment':'talk:[dial\x20string]'},'data5':{'type':Sequelize[_0xfa03('0x0')],'comment':'talk:[queue]'},'role':{'type':Sequelize[_0xfa03('0x0')]},'internal':{'type':Sequelize[_0xfa03('0x2')]},'uniqueid':{'type':Sequelize['STRING']}};