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 _0xe953=['removeListener','update','emit'];(function(_0x4d549d,_0xdc47f7){var _0x23cc7e=function(_0x407213){while(--_0x407213){_0x4d549d['push'](_0x4d549d['shift']());}};_0x23cc7e(++_0xdc47f7);}(_0xe953,0x1d2));var _0x3e95=function(_0x44946b,_0xf874ec){_0x44946b=_0x44946b-0x0;var _0x249bc4=_0xe953[_0x44946b];return _0x249bc4;};'use strict';var OpenchannelAccountEvents=require('./openchannelAccount.events');var events=['save','remove',_0x3e95('0x0')];function createListener(_0x9aa3f0,_0x57e8be){return function(_0x550df9){_0x57e8be[_0x3e95('0x1')](_0x9aa3f0,_0x550df9);};}function removeListener(_0xdbcad6,_0x23ce99){return function(){OpenchannelAccountEvents[_0x3e95('0x2')](_0xdbcad6,_0x23ce99);};}exports['register']=function(_0x1cdfdd){for(var _0x1ede98=0x0,_0x2ce8f3=events['length'];_0x1ede98<_0x2ce8f3;_0x1ede98++){var _0x52be4e=events[_0x1ede98];var _0x5239f2=createListener('openchannelAccount:'+_0x52be4e,_0x1cdfdd);OpenchannelAccountEvents['on'](_0x52be4e,_0x5239f2);}};