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 _0x9e0d=['emit','length','./smsAccount.events','save','remove','update'];(function(_0x4ef235,_0x485f12){var _0x39996f=function(_0x3d0e02){while(--_0x3d0e02){_0x4ef235['push'](_0x4ef235['shift']());}};_0x39996f(++_0x485f12);}(_0x9e0d,0xf8));var _0xd9e0=function(_0x2b78e5,_0x3126f8){_0x2b78e5=_0x2b78e5-0x0;var _0xa8d52d=_0x9e0d[_0x2b78e5];return _0xa8d52d;};'use strict';var SmsAccountEvents=require(_0xd9e0('0x0'));var events=[_0xd9e0('0x1'),_0xd9e0('0x2'),_0xd9e0('0x3')];function createListener(_0x3a6544,_0x20914e){return function(_0x1e11be){_0x20914e[_0xd9e0('0x4')](_0x3a6544,_0x1e11be);};}function removeListener(_0x3e20bb,_0x275a3b){return function(){SmsAccountEvents['removeListener'](_0x3e20bb,_0x275a3b);};}exports['register']=function(_0x25381e){for(var _0x4560a0=0x0,_0x659b86=events[_0xd9e0('0x5')];_0x4560a0<_0x659b86;_0x4560a0++){var _0x3ef9cd=events[_0x4560a0];var _0x1d39ab=createListener('smsAccount:'+_0x3ef9cd,_0x25381e);SmsAccountEvents['on'](_0x3ef9cd,_0x1d39ab);}};