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 _0x172c=['remove','emit','removeListener','register','./smsAccount.events'];(function(_0x3b1993,_0x19b626){var _0x524325=function(_0x1009ed){while(--_0x1009ed){_0x3b1993['push'](_0x3b1993['shift']());}};_0x524325(++_0x19b626);}(_0x172c,0x95));var _0xc172=function(_0x36ed48,_0x1ee0d4){_0x36ed48=_0x36ed48-0x0;var _0x51c63a=_0x172c[_0x36ed48];return _0x51c63a;};'use strict';var SmsAccountEvents=require(_0xc172('0x0'));var events=['save',_0xc172('0x1'),'update'];function createListener(_0x42245f,_0x3b47ea){return function(_0x2c3de4){_0x3b47ea[_0xc172('0x2')](_0x42245f,_0x2c3de4);};}function removeListener(_0x1043ad,_0x33587e){return function(){SmsAccountEvents[_0xc172('0x3')](_0x1043ad,_0x33587e);};}exports[_0xc172('0x4')]=function(_0x58f538){for(var _0x4d5c1b=0x0,_0x1634f6=events['length'];_0x4d5c1b<_0x1634f6;_0x4d5c1b++){var _0x4cdeca=events[_0x4d5c1b];var _0x24645e=createListener('smsAccount:'+_0x4cdeca,_0x58f538);SmsAccountEvents['on'](_0x4cdeca,_0x24645e);}};