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 _0xe9f9=['./openchannelAccount.events','remove','update','removeListener','register','length'];(function(_0x14add3,_0x13ce8d){var _0x4a174f=function(_0x2b3ed7){while(--_0x2b3ed7){_0x14add3['push'](_0x14add3['shift']());}};_0x4a174f(++_0x13ce8d);}(_0xe9f9,0x174));var _0x9e9f=function(_0x125fcb,_0x49946a){_0x125fcb=_0x125fcb-0x0;var _0x61d085=_0xe9f9[_0x125fcb];return _0x61d085;};'use strict';var OpenchannelAccountEvents=require(_0x9e9f('0x0'));var events=['save',_0x9e9f('0x1'),_0x9e9f('0x2')];function createListener(_0x24e489,_0x439590){return function(_0x15d8d0){_0x439590['emit'](_0x24e489,_0x15d8d0);};}function removeListener(_0x2020b3,_0x47f4c7){return function(){OpenchannelAccountEvents[_0x9e9f('0x3')](_0x2020b3,_0x47f4c7);};}exports[_0x9e9f('0x4')]=function(_0x549ea5){for(var _0x32da7a=0x0,_0x54f87c=events[_0x9e9f('0x5')];_0x32da7a<_0x54f87c;_0x32da7a++){var _0x661886=events[_0x32da7a];var _0x10d43b=createListener('openchannelAccount:'+_0x661886,_0x549ea5);OpenchannelAccountEvents['on'](_0x661886,_0x10d43b);}};