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 _0xb72d=['./openchannelMessage.events','save','remove','update','emit','length','openchannelMessage:'];(function(_0x21a9d9,_0x4d5ac8){var _0x46adce=function(_0xfdd336){while(--_0xfdd336){_0x21a9d9['push'](_0x21a9d9['shift']());}};_0x46adce(++_0x4d5ac8);}(_0xb72d,0xc4));var _0xdb72=function(_0x4da5c1,_0x4e9c2e){_0x4da5c1=_0x4da5c1-0x0;var _0x149524=_0xb72d[_0x4da5c1];return _0x149524;};'use strict';var OpenchannelMessageEvents=require(_0xdb72('0x0'));var events=[_0xdb72('0x1'),_0xdb72('0x2'),_0xdb72('0x3')];function createListener(_0x5b7852,_0x40657c){return function(_0x4b7ef2){_0x40657c[_0xdb72('0x4')](_0x5b7852,_0x4b7ef2);};}function removeListener(_0x326e71,_0x101d38){return function(){OpenchannelMessageEvents['removeListener'](_0x326e71,_0x101d38);};}exports['register']=function(_0x3389f0){for(var _0x3a00e5=0x0,_0x1f5ba5=events[_0xdb72('0x5')];_0x3a00e5<_0x1f5ba5;_0x3a00e5++){var _0x2b6646=events[_0x3a00e5];var _0x428bfc=createListener(_0xdb72('0x6')+_0x2b6646,_0x3389f0);OpenchannelMessageEvents['on'](_0x2b6646,_0x428bfc);}};