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 _0xee5b=['./openchannelAccount.events','remove','update','emit','register'];(function(_0x32d07d,_0x254d4a){var _0x34a4e9=function(_0x5f3c22){while(--_0x5f3c22){_0x32d07d['push'](_0x32d07d['shift']());}};_0x34a4e9(++_0x254d4a);}(_0xee5b,0x1f4));var _0xbee5=function(_0x850626,_0x5072ff){_0x850626=_0x850626-0x0;var _0x11da82=_0xee5b[_0x850626];return _0x11da82;};'use strict';var OpenchannelAccountEvents=require(_0xbee5('0x0'));var events=['save',_0xbee5('0x1'),_0xbee5('0x2')];function createListener(_0x4f850a,_0x1893e4){return function(_0x2b93c2){_0x1893e4[_0xbee5('0x3')](_0x4f850a,_0x2b93c2);};}function removeListener(_0x210159,_0x4bd202){return function(){OpenchannelAccountEvents['removeListener'](_0x210159,_0x4bd202);};}exports[_0xbee5('0x4')]=function(_0x2c0bde){for(var _0xab6e4d=0x0,_0x804ab8=events['length'];_0xab6e4d<_0x804ab8;_0xab6e4d++){var _0x5505e3=events[_0xab6e4d];var _0x53d5b9=createListener('openchannelAccount:'+_0x5505e3,_0x2c0bde);OpenchannelAccountEvents['on'](_0x5505e3,_0x53d5b9);}};