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 _0xe9cc=['./openchannelAccount.events','save','remove','update','emit','length','openchannelAccount:'];(function(_0x451ff6,_0x3c71d6){var _0x94ce=function(_0x312331){while(--_0x312331){_0x451ff6['push'](_0x451ff6['shift']());}};_0x94ce(++_0x3c71d6);}(_0xe9cc,0x1ea));var _0xce9c=function(_0x1d9a3d,_0x27b142){_0x1d9a3d=_0x1d9a3d-0x0;var _0x5ef785=_0xe9cc[_0x1d9a3d];return _0x5ef785;};'use strict';var OpenchannelAccountEvents=require(_0xce9c('0x0'));var events=[_0xce9c('0x1'),_0xce9c('0x2'),_0xce9c('0x3')];function createListener(_0xa1bf40,_0x8287a0){return function(_0x2522ad){_0x8287a0[_0xce9c('0x4')](_0xa1bf40,_0x2522ad);};}function removeListener(_0x300f9f,_0x4a28cc){return function(){OpenchannelAccountEvents['removeListener'](_0x300f9f,_0x4a28cc);};}exports['register']=function(_0x12acf7){for(var _0x14d3bf=0x0,_0x39b51c=events[_0xce9c('0x5')];_0x14d3bf<_0x39b51c;_0x14d3bf++){var _0x336f90=events[_0x14d3bf];var _0x2cf7f9=createListener(_0xce9c('0x6')+_0x336f90,_0x12acf7);OpenchannelAccountEvents['on'](_0x336f90,_0x2cf7f9);}};