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 _0xf619=['save','update','removeListener','register','length','smsAccount:'];(function(_0x321bb2,_0x202794){var _0x9c12ed=function(_0x263dd3){while(--_0x263dd3){_0x321bb2['push'](_0x321bb2['shift']());}};_0x9c12ed(++_0x202794);}(_0xf619,0x17a));var _0x9f61=function(_0x4ec425,_0xb82cae){_0x4ec425=_0x4ec425-0x0;var _0x4a207f=_0xf619[_0x4ec425];return _0x4a207f;};'use strict';var SmsAccountEvents=require('./smsAccount.events');var events=[_0x9f61('0x0'),'remove',_0x9f61('0x1')];function createListener(_0x3d2645,_0x397634){return function(_0x21dec9){_0x397634['emit'](_0x3d2645,_0x21dec9);};}function removeListener(_0x53a007,_0x3fdaff){return function(){SmsAccountEvents[_0x9f61('0x2')](_0x53a007,_0x3fdaff);};}exports[_0x9f61('0x3')]=function(_0x2f0882){for(var _0x5c2ec0=0x0,_0x3a3327=events[_0x9f61('0x4')];_0x5c2ec0<_0x3a3327;_0x5c2ec0++){var _0x559bdd=events[_0x5c2ec0];var _0x43cfb1=createListener(_0x9f61('0x5')+_0x559bdd,_0x2f0882);SmsAccountEvents['on'](_0x559bdd,_0x43cfb1);}};