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 _0x95c5=['register','length','openchannelAccount:','./openchannelAccount.events','save','update','emit','removeListener'];(function(_0x41da22,_0x2d02f4){var _0x27b255=function(_0x3ac6a0){while(--_0x3ac6a0){_0x41da22['push'](_0x41da22['shift']());}};_0x27b255(++_0x2d02f4);}(_0x95c5,0x153));var _0x595c=function(_0x462999,_0x24d200){_0x462999=_0x462999-0x0;var _0x4b1366=_0x95c5[_0x462999];return _0x4b1366;};'use strict';var OpenchannelAccountEvents=require(_0x595c('0x0'));var events=[_0x595c('0x1'),'remove',_0x595c('0x2')];function createListener(_0x22a23d,_0x36a7da){return function(_0x1da8dc){_0x36a7da[_0x595c('0x3')](_0x22a23d,_0x1da8dc);};}function removeListener(_0x218d7b,_0xf4369b){return function(){OpenchannelAccountEvents[_0x595c('0x4')](_0x218d7b,_0xf4369b);};}exports[_0x595c('0x5')]=function(_0x46be42){for(var _0x4ff80b=0x0,_0x49a115=events[_0x595c('0x6')];_0x4ff80b<_0x49a115;_0x4ff80b++){var _0xfcaf47=events[_0x4ff80b];var _0x218eca=createListener(_0x595c('0x7')+_0xfcaf47,_0x46be42);OpenchannelAccountEvents['on'](_0xfcaf47,_0x218eca);}};