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 _0x4b01=['./openchannelAccount.events','remove','emit','removeListener','register','length','openchannelAccount:'];(function(_0x1a6475,_0x31fd7e){var _0x4fabc4=function(_0x130766){while(--_0x130766){_0x1a6475['push'](_0x1a6475['shift']());}};_0x4fabc4(++_0x31fd7e);}(_0x4b01,0x11f));var _0x14b0=function(_0x3ab261,_0x473ca7){_0x3ab261=_0x3ab261-0x0;var _0x3a9feb=_0x4b01[_0x3ab261];return _0x3a9feb;};'use strict';var OpenchannelAccountEvents=require(_0x14b0('0x0'));var events=['save',_0x14b0('0x1'),'update'];function createListener(_0x3f877a,_0xe0f467){return function(_0x5c320b){_0xe0f467[_0x14b0('0x2')](_0x3f877a,_0x5c320b);};}function removeListener(_0x301d69,_0x1b6e17){return function(){OpenchannelAccountEvents[_0x14b0('0x3')](_0x301d69,_0x1b6e17);};}exports[_0x14b0('0x4')]=function(_0x25d503){for(var _0x528254=0x0,_0x267d10=events[_0x14b0('0x5')];_0x528254<_0x267d10;_0x528254++){var _0x31c148=events[_0x528254];var _0x4df174=createListener(_0x14b0('0x6')+_0x31c148,_0x25d503);OpenchannelAccountEvents['on'](_0x31c148,_0x4df174);}};