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 _0x364a=['removeListener','length','./openchannelAccount.events','save','remove','update'];(function(_0x3dd15e,_0x1f0015){var _0x231fd0=function(_0x4f680a){while(--_0x4f680a){_0x3dd15e['push'](_0x3dd15e['shift']());}};_0x231fd0(++_0x1f0015);}(_0x364a,0x17c));var _0xa364=function(_0x45aa26,_0x206b0b){_0x45aa26=_0x45aa26-0x0;var _0x4da7ca=_0x364a[_0x45aa26];return _0x4da7ca;};'use strict';var OpenchannelAccountEvents=require(_0xa364('0x0'));var events=[_0xa364('0x1'),_0xa364('0x2'),_0xa364('0x3')];function createListener(_0x1b38ef,_0xc438e0){return function(_0x4b28a8){_0xc438e0['emit'](_0x1b38ef,_0x4b28a8);};}function removeListener(_0x43f48b,_0x5a1666){return function(){OpenchannelAccountEvents[_0xa364('0x4')](_0x43f48b,_0x5a1666);};}exports['register']=function(_0x55f28b){for(var _0x1fc334=0x0,_0x526dbf=events[_0xa364('0x5')];_0x1fc334<_0x526dbf;_0x1fc334++){var _0x24034b=events[_0x1fc334];var _0x257788=createListener('openchannelAccount:'+_0x24034b,_0x55f28b);OpenchannelAccountEvents['on'](_0x24034b,_0x257788);}};