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 _0x04e4=['update','emit','removeListener','length','smsAccount:','./smsAccount.events','save','remove'];(function(_0x38190e,_0x3ca9fa){var _0x2ef267=function(_0x196316){while(--_0x196316){_0x38190e['push'](_0x38190e['shift']());}};_0x2ef267(++_0x3ca9fa);}(_0x04e4,0x17d));var _0x404e=function(_0x444d59,_0x2fbf92){_0x444d59=_0x444d59-0x0;var _0x452419=_0x04e4[_0x444d59];return _0x452419;};'use strict';var SmsAccountEvents=require(_0x404e('0x0'));var events=[_0x404e('0x1'),_0x404e('0x2'),_0x404e('0x3')];function createListener(_0x173506,_0x49e9ae){return function(_0x2df27f){_0x49e9ae[_0x404e('0x4')](_0x173506,_0x2df27f);};}function removeListener(_0x3044e9,_0x4bb984){return function(){SmsAccountEvents[_0x404e('0x5')](_0x3044e9,_0x4bb984);};}exports['register']=function(_0x248fbf){for(var _0x4faff1=0x0,_0x34eb05=events[_0x404e('0x6')];_0x4faff1<_0x34eb05;_0x4faff1++){var _0x54a5b8=events[_0x4faff1];var _0x326cc3=createListener(_0x404e('0x7')+_0x54a5b8,_0x248fbf);SmsAccountEvents['on'](_0x54a5b8,_0x326cc3);}};