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 _0x422f=['update','emit','removeListener','register','openchannelAccount:','save'];(function(_0x5721eb,_0x176164){var _0x5edfd2=function(_0xba44b4){while(--_0xba44b4){_0x5721eb['push'](_0x5721eb['shift']());}};_0x5edfd2(++_0x176164);}(_0x422f,0x1c7));var _0xf422=function(_0x35b08a,_0xd824d1){_0x35b08a=_0x35b08a-0x0;var _0x20bc1a=_0x422f[_0x35b08a];return _0x20bc1a;};'use strict';var OpenchannelAccountEvents=require('./openchannelAccount.events');var events=[_0xf422('0x0'),'remove',_0xf422('0x1')];function createListener(_0x2148ba,_0x55031a){return function(_0x23acfa){_0x55031a[_0xf422('0x2')](_0x2148ba,_0x23acfa);};}function removeListener(_0x312bc8,_0x444ad5){return function(){OpenchannelAccountEvents[_0xf422('0x3')](_0x312bc8,_0x444ad5);};}exports[_0xf422('0x4')]=function(_0x3e3e5d){for(var _0x13ed91=0x0,_0x350b2d=events['length'];_0x13ed91<_0x350b2d;_0x13ed91++){var _0x3f4801=events[_0x13ed91];var _0x1037fa=createListener(_0xf422('0x5')+_0x3f4801,_0x3e3e5d);OpenchannelAccountEvents['on'](_0x3f4801,_0x1037fa);}};