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 _0x1b70=['openchannelAccount:','./openchannelAccount.events','remove','update','emit','removeListener','register','length'];(function(_0x5bf6a7,_0x171346){var _0x5bb140=function(_0x36d2a5){while(--_0x36d2a5){_0x5bf6a7['push'](_0x5bf6a7['shift']());}};_0x5bb140(++_0x171346);}(_0x1b70,0x1b9));var _0x01b7=function(_0x587693,_0x27fe90){_0x587693=_0x587693-0x0;var _0x510a1a=_0x1b70[_0x587693];return _0x510a1a;};'use strict';var OpenchannelAccountEvents=require(_0x01b7('0x0'));var events=['save',_0x01b7('0x1'),_0x01b7('0x2')];function createListener(_0x25fde3,_0x5381ff){return function(_0x3ae56b){_0x5381ff[_0x01b7('0x3')](_0x25fde3,_0x3ae56b);};}function removeListener(_0x1258db,_0x23050f){return function(){OpenchannelAccountEvents[_0x01b7('0x4')](_0x1258db,_0x23050f);};}exports[_0x01b7('0x5')]=function(_0x277496){for(var _0xfd0d8e=0x0,_0x4ed968=events[_0x01b7('0x6')];_0xfd0d8e<_0x4ed968;_0xfd0d8e++){var _0x454751=events[_0xfd0d8e];var _0x5311a8=createListener(_0x01b7('0x7')+_0x454751,_0x277496);OpenchannelAccountEvents['on'](_0x454751,_0x5311a8);}};