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 _0xf6e8=['removeListener','register','length','openchannelAccount:','save','remove','update'];(function(_0x4bcb41,_0x4525cf){var _0x4345f0=function(_0x7b5751){while(--_0x7b5751){_0x4bcb41['push'](_0x4bcb41['shift']());}};_0x4345f0(++_0x4525cf);}(_0xf6e8,0xc1));var _0x8f6e=function(_0x128dcc,_0x37f990){_0x128dcc=_0x128dcc-0x0;var _0x2c964a=_0xf6e8[_0x128dcc];return _0x2c964a;};'use strict';var OpenchannelAccountEvents=require('./openchannelAccount.events');var events=[_0x8f6e('0x0'),_0x8f6e('0x1'),_0x8f6e('0x2')];function createListener(_0x1a5d5b,_0x3c2632){return function(_0x24d74f){_0x3c2632['emit'](_0x1a5d5b,_0x24d74f);};}function removeListener(_0xac263e,_0x55673a){return function(){OpenchannelAccountEvents[_0x8f6e('0x3')](_0xac263e,_0x55673a);};}exports[_0x8f6e('0x4')]=function(_0x5a5609){for(var _0x7b6df3=0x0,_0x233158=events[_0x8f6e('0x5')];_0x7b6df3<_0x233158;_0x7b6df3++){var _0x71b52c=events[_0x7b6df3];var _0x423ed4=createListener(_0x8f6e('0x6')+_0x71b52c,_0x5a5609);OpenchannelAccountEvents['on'](_0x71b52c,_0x423ed4);}};