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 _0x121f=['emit','register','length','openchannelAccount:','save'];(function(_0x15aed5,_0x21bf6e){var _0x3ab856=function(_0x1742fe){while(--_0x1742fe){_0x15aed5['push'](_0x15aed5['shift']());}};_0x3ab856(++_0x21bf6e);}(_0x121f,0x68));var _0xf121=function(_0x1acc2d,_0x597696){_0x1acc2d=_0x1acc2d-0x0;var _0xabfa6d=_0x121f[_0x1acc2d];return _0xabfa6d;};'use strict';var OpenchannelAccountEvents=require('./openchannelAccount.events');var events=[_0xf121('0x0'),'remove','update'];function createListener(_0x5d3167,_0x124e2c){return function(_0x469fb2){_0x124e2c[_0xf121('0x1')](_0x5d3167,_0x469fb2);};}function removeListener(_0x298e08,_0x1d2730){return function(){OpenchannelAccountEvents['removeListener'](_0x298e08,_0x1d2730);};}exports[_0xf121('0x2')]=function(_0x116861){for(var _0x22d057=0x0,_0xcad403=events[_0xf121('0x3')];_0x22d057<_0xcad403;_0x22d057++){var _0x100e21=events[_0x22d057];var _0xcc74d1=createListener(_0xf121('0x4')+_0x100e21,_0x116861);OpenchannelAccountEvents['on'](_0x100e21,_0xcc74d1);}};