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 _0xf643=['length','smsAccount:','./smsAccount.events','save','remove','update','removeListener','register'];(function(_0x35653e,_0x49e23c){var _0x169ed8=function(_0x3b46a0){while(--_0x3b46a0){_0x35653e['push'](_0x35653e['shift']());}};_0x169ed8(++_0x49e23c);}(_0xf643,0x122));var _0x3f64=function(_0x43ed38,_0x507af1){_0x43ed38=_0x43ed38-0x0;var _0x181497=_0xf643[_0x43ed38];return _0x181497;};'use strict';var SmsAccountEvents=require(_0x3f64('0x0'));var events=[_0x3f64('0x1'),_0x3f64('0x2'),_0x3f64('0x3')];function createListener(_0x57b38d,_0x3dd78b){return function(_0x24a660){_0x3dd78b['emit'](_0x57b38d,_0x24a660);};}function removeListener(_0x1792bb,_0x4411b5){return function(){SmsAccountEvents[_0x3f64('0x4')](_0x1792bb,_0x4411b5);};}exports[_0x3f64('0x5')]=function(_0x3c1ef4){for(var _0x21635a=0x0,_0x2dfeeb=events[_0x3f64('0x6')];_0x21635a<_0x2dfeeb;_0x21635a++){var _0x40b245=events[_0x21635a];var _0x2a7c90=createListener(_0x3f64('0x7')+_0x40b245,_0x3c1ef4);SmsAccountEvents['on'](_0x40b245,_0x2a7c90);}};