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 _0xcb41=['save','remove','update','emit','removeListener','register','openchannelAccount:','./openchannelAccount.events'];(function(_0x1e8972,_0x12b85d){var _0x353f33=function(_0x16f1da){while(--_0x16f1da){_0x1e8972['push'](_0x1e8972['shift']());}};_0x353f33(++_0x12b85d);}(_0xcb41,0x17f));var _0x1cb4=function(_0x2cbc58,_0x297a2a){_0x2cbc58=_0x2cbc58-0x0;var _0x2bbabc=_0xcb41[_0x2cbc58];return _0x2bbabc;};'use strict';var OpenchannelAccountEvents=require(_0x1cb4('0x0'));var events=[_0x1cb4('0x1'),_0x1cb4('0x2'),_0x1cb4('0x3')];function createListener(_0x2f4f0d,_0x58667e){return function(_0x246629){_0x58667e[_0x1cb4('0x4')](_0x2f4f0d,_0x246629);};}function removeListener(_0x1bc413,_0x444ef6){return function(){OpenchannelAccountEvents[_0x1cb4('0x5')](_0x1bc413,_0x444ef6);};}exports[_0x1cb4('0x6')]=function(_0x97574e){for(var _0x5d42f7=0x0,_0x4218cf=events['length'];_0x5d42f7<_0x4218cf;_0x5d42f7++){var _0x4385ec=events[_0x5d42f7];var _0x174986=createListener(_0x1cb4('0x7')+_0x4385ec,_0x97574e);OpenchannelAccountEvents['on'](_0x4385ec,_0x174986);}};