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 _0x127f=['./smsAccount.events','save','remove','emit','length','smsAccount:'];(function(_0x4a49ec,_0x475b45){var _0x5f4563=function(_0x30c791){while(--_0x30c791){_0x4a49ec['push'](_0x4a49ec['shift']());}};_0x5f4563(++_0x475b45);}(_0x127f,0xea));var _0xf127=function(_0x1081a3,_0x2ac784){_0x1081a3=_0x1081a3-0x0;var _0x5696a2=_0x127f[_0x1081a3];return _0x5696a2;};'use strict';var SmsAccountEvents=require(_0xf127('0x0'));var events=[_0xf127('0x1'),_0xf127('0x2'),'update'];function createListener(_0x5751d5,_0x5af0aa){return function(_0x19bee0){_0x5af0aa[_0xf127('0x3')](_0x5751d5,_0x19bee0);};}function removeListener(_0x5e37fb,_0x2860cd){return function(){SmsAccountEvents['removeListener'](_0x5e37fb,_0x2860cd);};}exports['register']=function(_0x20b42d){for(var _0x31ef65=0x0,_0x1f152b=events[_0xf127('0x4')];_0x31ef65<_0x1f152b;_0x31ef65++){var _0x43d5b7=events[_0x31ef65];var _0x3b5a5f=createListener(_0xf127('0x5')+_0x43d5b7,_0x20b42d);SmsAccountEvents['on'](_0x43d5b7,_0x3b5a5f);}};