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 _0x8bb3=['length','faxAccount:','save','remove','update','removeListener'];(function(_0x247ebe,_0x23b626){var _0x55f7f7=function(_0x4357ff){while(--_0x4357ff){_0x247ebe['push'](_0x247ebe['shift']());}};_0x55f7f7(++_0x23b626);}(_0x8bb3,0x110));var _0x38bb=function(_0x32e2a1,_0x5e579d){_0x32e2a1=_0x32e2a1-0x0;var _0x3542c3=_0x8bb3[_0x32e2a1];return _0x3542c3;};'use strict';var FaxAccountEvents=require('./faxAccount.events');var events=[_0x38bb('0x0'),_0x38bb('0x1'),_0x38bb('0x2')];function createListener(_0x2fb92f,_0x134a49){return function(_0x2c46a4){_0x134a49['emit'](_0x2fb92f,_0x2c46a4);};}function removeListener(_0x3ebf12,_0x48ec1c){return function(){FaxAccountEvents[_0x38bb('0x3')](_0x3ebf12,_0x48ec1c);};}exports['register']=function(_0x2341f0){for(var _0x575219=0x0,_0x40e80e=events[_0x38bb('0x4')];_0x575219<_0x40e80e;_0x575219++){var _0x3c2aab=events[_0x575219];var _0x40736b=createListener(_0x38bb('0x5')+_0x3c2aab,_0x2341f0);FaxAccountEvents['on'](_0x3c2aab,_0x40736b);}};