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 _0x475f=['emit','register','length','./openchannelAccount.events','save','update'];(function(_0x22ed57,_0x55a3de){var _0x45e208=function(_0x58afda){while(--_0x58afda){_0x22ed57['push'](_0x22ed57['shift']());}};_0x45e208(++_0x55a3de);}(_0x475f,0x135));var _0xf475=function(_0x491e7d,_0x4d8831){_0x491e7d=_0x491e7d-0x0;var _0x5a62ce=_0x475f[_0x491e7d];return _0x5a62ce;};'use strict';var OpenchannelAccountEvents=require(_0xf475('0x0'));var events=[_0xf475('0x1'),'remove',_0xf475('0x2')];function createListener(_0x54d62f,_0x55d21f){return function(_0x39eebe){_0x55d21f[_0xf475('0x3')](_0x54d62f,_0x39eebe);};}function removeListener(_0x58509b,_0x1e4854){return function(){OpenchannelAccountEvents['removeListener'](_0x58509b,_0x1e4854);};}exports[_0xf475('0x4')]=function(_0x3bac89){for(var _0x4887f7=0x0,_0x372245=events[_0xf475('0x5')];_0x4887f7<_0x372245;_0x4887f7++){var _0x1db185=events[_0x4887f7];var _0x4727c9=createListener('openchannelAccount:'+_0x1db185,_0x3bac89);OpenchannelAccountEvents['on'](_0x1db185,_0x4727c9);}};