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 _0x33cf=['remove','update','emit','removeListener','openchannelMessage:'];(function(_0x267d66,_0xe313d1){var _0x1742be=function(_0x585ebd){while(--_0x585ebd){_0x267d66['push'](_0x267d66['shift']());}};_0x1742be(++_0xe313d1);}(_0x33cf,0x14a));var _0xf33c=function(_0x401c24,_0x377659){_0x401c24=_0x401c24-0x0;var _0x3f0266=_0x33cf[_0x401c24];return _0x3f0266;};'use strict';var OpenchannelMessageEvents=require('./openchannelMessage.events');var events=['save',_0xf33c('0x0'),_0xf33c('0x1')];function createListener(_0x3729ec,_0x9dd1df){return function(_0x1a6bf2){_0x9dd1df[_0xf33c('0x2')](_0x3729ec,_0x1a6bf2);};}function removeListener(_0x18dddb,_0x2618b6){return function(){OpenchannelMessageEvents[_0xf33c('0x3')](_0x18dddb,_0x2618b6);};}exports['register']=function(_0x1faa35){for(var _0x396f5c=0x0,_0x5e89a3=events['length'];_0x396f5c<_0x5e89a3;_0x396f5c++){var _0x3b65fd=events[_0x396f5c];var _0x557e22=createListener(_0xf33c('0x4')+_0x3b65fd,_0x1faa35);OpenchannelMessageEvents['on'](_0x3b65fd,_0x557e22);}};