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 _0x1da1=['./openchannelAccount.events','save','remove','update','emit','register'];(function(_0x3d6226,_0x46d81b){var _0x2c4d12=function(_0x10549c){while(--_0x10549c){_0x3d6226['push'](_0x3d6226['shift']());}};_0x2c4d12(++_0x46d81b);}(_0x1da1,0x1a4));var _0x11da=function(_0x355994,_0x2531bb){_0x355994=_0x355994-0x0;var _0x4c2605=_0x1da1[_0x355994];return _0x4c2605;};'use strict';var OpenchannelAccountEvents=require(_0x11da('0x0'));var events=[_0x11da('0x1'),_0x11da('0x2'),_0x11da('0x3')];function createListener(_0x46896e,_0x5b0fe4){return function(_0x55af86){_0x5b0fe4[_0x11da('0x4')](_0x46896e,_0x55af86);};}function removeListener(_0x1beca5,_0x3d6bd5){return function(){OpenchannelAccountEvents['removeListener'](_0x1beca5,_0x3d6bd5);};}exports[_0x11da('0x5')]=function(_0x209cbb){for(var _0x15c324=0x0,_0x5ecc27=events['length'];_0x15c324<_0x5ecc27;_0x15c324++){var _0x287653=events[_0x15c324];var _0x109f4b=createListener('openchannelAccount:'+_0x287653,_0x209cbb);OpenchannelAccountEvents['on'](_0x287653,_0x109f4b);}};