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 _0x834d=['update','emit','register','length','openchannelAccount:','./openchannelAccount.events','save'];(function(_0x968fdc,_0x530be6){var _0x561437=function(_0x20671d){while(--_0x20671d){_0x968fdc['push'](_0x968fdc['shift']());}};_0x561437(++_0x530be6);}(_0x834d,0x140));var _0xd834=function(_0xcf4e1c,_0x196511){_0xcf4e1c=_0xcf4e1c-0x0;var _0x55a07f=_0x834d[_0xcf4e1c];return _0x55a07f;};'use strict';var OpenchannelAccountEvents=require(_0xd834('0x0'));var events=[_0xd834('0x1'),'remove',_0xd834('0x2')];function createListener(_0x555e39,_0x48410e){return function(_0x19a31d){_0x48410e[_0xd834('0x3')](_0x555e39,_0x19a31d);};}function removeListener(_0x2d838f,_0xfee6e0){return function(){OpenchannelAccountEvents['removeListener'](_0x2d838f,_0xfee6e0);};}exports[_0xd834('0x4')]=function(_0x3f0759){for(var _0x5e696=0x0,_0x42623d=events[_0xd834('0x5')];_0x5e696<_0x42623d;_0x5e696++){var _0x256853=events[_0x5e696];var _0x51c989=createListener(_0xd834('0x6')+_0x256853,_0x3f0759);OpenchannelAccountEvents['on'](_0x256853,_0x51c989);}};