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 _0x9d0c=['emit','removeListener','register','length','openchannelMessage:','./openchannelMessage.events','save','remove','update'];(function(_0x20a584,_0xe384a5){var _0x4b41a8=function(_0x2127c6){while(--_0x2127c6){_0x20a584['push'](_0x20a584['shift']());}};_0x4b41a8(++_0xe384a5);}(_0x9d0c,0xb9));var _0xc9d0=function(_0xbc25e1,_0x27007d){_0xbc25e1=_0xbc25e1-0x0;var _0xaf0a85=_0x9d0c[_0xbc25e1];return _0xaf0a85;};'use strict';var OpenchannelMessageEvents=require(_0xc9d0('0x0'));var events=[_0xc9d0('0x1'),_0xc9d0('0x2'),_0xc9d0('0x3')];function createListener(_0x5603ac,_0x44ac94){return function(_0x5295f2){_0x44ac94[_0xc9d0('0x4')](_0x5603ac,_0x5295f2);};}function removeListener(_0x130c3e,_0x1ebd5c){return function(){OpenchannelMessageEvents[_0xc9d0('0x5')](_0x130c3e,_0x1ebd5c);};}exports[_0xc9d0('0x6')]=function(_0x587897){for(var _0xd81a9d=0x0,_0x34bb49=events[_0xc9d0('0x7')];_0xd81a9d<_0x34bb49;_0xd81a9d++){var _0x213d99=events[_0xd81a9d];var _0x3de605=createListener(_0xc9d0('0x8')+_0x213d99,_0x587897);OpenchannelMessageEvents['on'](_0x213d99,_0x3de605);}};