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 _0xc39c=['length','openchannelAccount:','save','remove','update','emit','removeListener','register'];(function(_0x4cf98e,_0xba4b79){var _0x1623ac=function(_0x459bc0){while(--_0x459bc0){_0x4cf98e['push'](_0x4cf98e['shift']());}};_0x1623ac(++_0xba4b79);}(_0xc39c,0xd2));var _0xcc39=function(_0x25cf1f,_0x90fa5f){_0x25cf1f=_0x25cf1f-0x0;var _0x41b356=_0xc39c[_0x25cf1f];return _0x41b356;};'use strict';var OpenchannelAccountEvents=require('./openchannelAccount.events');var events=[_0xcc39('0x0'),_0xcc39('0x1'),_0xcc39('0x2')];function createListener(_0x5d885b,_0x6c204c){return function(_0x29b2e2){_0x6c204c[_0xcc39('0x3')](_0x5d885b,_0x29b2e2);};}function removeListener(_0x5bc333,_0x29c6c2){return function(){OpenchannelAccountEvents[_0xcc39('0x4')](_0x5bc333,_0x29c6c2);};}exports[_0xcc39('0x5')]=function(_0x3118f8){for(var _0x592ad7=0x0,_0x32cf84=events[_0xcc39('0x6')];_0x592ad7<_0x32cf84;_0x592ad7++){var _0x12361a=events[_0x592ad7];var _0x46bb71=createListener(_0xcc39('0x7')+_0x12361a,_0x3118f8);OpenchannelAccountEvents['on'](_0x12361a,_0x46bb71);}};