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 _0xf4ce=['update','length','./smsAccount.events'];(function(_0x2f1762,_0xab43df){var _0x8ab21=function(_0xf6c1f5){while(--_0xf6c1f5){_0x2f1762['push'](_0x2f1762['shift']());}};_0x8ab21(++_0xab43df);}(_0xf4ce,0xf2));var _0xef4c=function(_0x501510,_0x61caa9){_0x501510=_0x501510-0x0;var _0x1e6ee5=_0xf4ce[_0x501510];return _0x1e6ee5;};'use strict';var SmsAccountEvents=require(_0xef4c('0x0'));var events=['save','remove',_0xef4c('0x1')];function createListener(_0x33ca4c,_0x293382){return function(_0x274ae4){_0x293382['emit'](_0x33ca4c,_0x274ae4);};}function removeListener(_0x56d2a6,_0x51b1df){return function(){SmsAccountEvents['removeListener'](_0x56d2a6,_0x51b1df);};}exports['register']=function(_0x2488f4){for(var _0x3e7b2a=0x0,_0x16dece=events[_0xef4c('0x2')];_0x3e7b2a<_0x16dece;_0x3e7b2a++){var _0x43aa45=events[_0x3e7b2a];var _0x2a3628=createListener('smsAccount:'+_0x43aa45,_0x2488f4);SmsAccountEvents['on'](_0x43aa45,_0x2a3628);}};