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 _0xd74e=['openchannelAccount:','./openchannelAccount.events','save','remove','update','removeListener','register','length'];(function(_0x48631c,_0x591f53){var _0x385344=function(_0x30149d){while(--_0x30149d){_0x48631c['push'](_0x48631c['shift']());}};_0x385344(++_0x591f53);}(_0xd74e,0x171));var _0xed74=function(_0x5d1d09,_0x19c87b){_0x5d1d09=_0x5d1d09-0x0;var _0x1dfb1b=_0xd74e[_0x5d1d09];return _0x1dfb1b;};'use strict';var OpenchannelAccountEvents=require(_0xed74('0x0'));var events=[_0xed74('0x1'),_0xed74('0x2'),_0xed74('0x3')];function createListener(_0x4805a9,_0x25b206){return function(_0x17eabe){_0x25b206['emit'](_0x4805a9,_0x17eabe);};}function removeListener(_0x5aafa8,_0x524f49){return function(){OpenchannelAccountEvents[_0xed74('0x4')](_0x5aafa8,_0x524f49);};}exports[_0xed74('0x5')]=function(_0x3b0e85){for(var _0x483ac2=0x0,_0x354fac=events[_0xed74('0x6')];_0x483ac2<_0x354fac;_0x483ac2++){var _0x3de41f=events[_0x483ac2];var _0x15239c=createListener(_0xed74('0x7')+_0x3de41f,_0x3b0e85);OpenchannelAccountEvents['on'](_0x3de41f,_0x15239c);}};