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 _0xc2cc=['update','emit','register','openchannelAccount:','save','remove'];(function(_0x2641f9,_0x26715f){var _0x585741=function(_0x2d1462){while(--_0x2d1462){_0x2641f9['push'](_0x2641f9['shift']());}};_0x585741(++_0x26715f);}(_0xc2cc,0x70));var _0xcc2c=function(_0x2c91e9,_0x2fb965){_0x2c91e9=_0x2c91e9-0x0;var _0x13f0ff=_0xc2cc[_0x2c91e9];return _0x13f0ff;};'use strict';var OpenchannelAccountEvents=require('./openchannelAccount.events');var events=[_0xcc2c('0x0'),_0xcc2c('0x1'),_0xcc2c('0x2')];function createListener(_0x5aad8f,_0x2a1a4a){return function(_0x52a81b){_0x2a1a4a[_0xcc2c('0x3')](_0x5aad8f,_0x52a81b);};}function removeListener(_0x47c883,_0x1dc5ec){return function(){OpenchannelAccountEvents['removeListener'](_0x47c883,_0x1dc5ec);};}exports[_0xcc2c('0x4')]=function(_0x539095){for(var _0x5855cc=0x0,_0x475a85=events['length'];_0x5855cc<_0x475a85;_0x5855cc++){var _0x144b90=events[_0x5855cc];var _0x5a276f=createListener(_0xcc2c('0x5')+_0x144b90,_0x539095);OpenchannelAccountEvents['on'](_0x144b90,_0x5a276f);}};