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 _0xb99c=['update','emit','removeListener','register','length','./openchannelMessage.events','save'];(function(_0x3f146c,_0x42e0dc){var _0x407f72=function(_0x42ada8){while(--_0x42ada8){_0x3f146c['push'](_0x3f146c['shift']());}};_0x407f72(++_0x42e0dc);}(_0xb99c,0x1a9));var _0xcb99=function(_0x5eb74d,_0x31f9a5){_0x5eb74d=_0x5eb74d-0x0;var _0x183669=_0xb99c[_0x5eb74d];return _0x183669;};'use strict';var OpenchannelMessageEvents=require(_0xcb99('0x0'));var events=[_0xcb99('0x1'),'remove',_0xcb99('0x2')];function createListener(_0x5c2b2b,_0x2f5bf5){return function(_0x36073a){_0x2f5bf5[_0xcb99('0x3')](_0x5c2b2b,_0x36073a);};}function removeListener(_0x296fbf,_0x4d30d3){return function(){OpenchannelMessageEvents[_0xcb99('0x4')](_0x296fbf,_0x4d30d3);};}exports[_0xcb99('0x5')]=function(_0xd995f2){for(var _0x51d16f=0x0,_0x3b4c51=events[_0xcb99('0x6')];_0x51d16f<_0x3b4c51;_0x51d16f++){var _0x36de4d=events[_0x51d16f];var _0x34241d=createListener('openchannelMessage:'+_0x36de4d,_0xd995f2);OpenchannelMessageEvents['on'](_0x36de4d,_0x34241d);}};