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 _0xf5cd=['remove','update','emit','removeListener','openchannelAccount:','save'];(function(_0x19950b,_0x53d0d7){var _0x3c6b41=function(_0x3924ad){while(--_0x3924ad){_0x19950b['push'](_0x19950b['shift']());}};_0x3c6b41(++_0x53d0d7);}(_0xf5cd,0xf5));var _0xdf5c=function(_0x59f491,_0xae7629){_0x59f491=_0x59f491-0x0;var _0xa5b6f1=_0xf5cd[_0x59f491];return _0xa5b6f1;};'use strict';var OpenchannelAccountEvents=require('./openchannelAccount.events');var events=[_0xdf5c('0x0'),_0xdf5c('0x1'),_0xdf5c('0x2')];function createListener(_0x405eba,_0xda2be7){return function(_0x53aa37){_0xda2be7[_0xdf5c('0x3')](_0x405eba,_0x53aa37);};}function removeListener(_0x3009b8,_0x56ce20){return function(){OpenchannelAccountEvents[_0xdf5c('0x4')](_0x3009b8,_0x56ce20);};}exports['register']=function(_0x1b58d7){for(var _0x46fe74=0x0,_0x2d4486=events['length'];_0x46fe74<_0x2d4486;_0x46fe74++){var _0x256582=events[_0x46fe74];var _0x29ee26=createListener(_0xdf5c('0x5')+_0x256582,_0x1b58d7);OpenchannelAccountEvents['on'](_0x256582,_0x29ee26);}};