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 _0x60e3=['update','emit','removeListener','./smsAccount.events','save','remove'];(function(_0x3dd15e,_0x1f0015){var _0x231fd0=function(_0x4f680a){while(--_0x4f680a){_0x3dd15e['push'](_0x3dd15e['shift']());}};_0x231fd0(++_0x1f0015);}(_0x60e3,0xc3));var _0x360e=function(_0x50cc91,_0x574fd9){_0x50cc91=_0x50cc91-0x0;var _0x191edc=_0x60e3[_0x50cc91];return _0x191edc;};'use strict';var SmsAccountEvents=require(_0x360e('0x0'));var events=[_0x360e('0x1'),_0x360e('0x2'),_0x360e('0x3')];function createListener(_0xb58676,_0x3fd2b){return function(_0x293539){_0x3fd2b[_0x360e('0x4')](_0xb58676,_0x293539);};}function removeListener(_0x4b77eb,_0x23e7e2){return function(){SmsAccountEvents[_0x360e('0x5')](_0x4b77eb,_0x23e7e2);};}exports['register']=function(_0x29fa82){for(var _0x52ad17=0x0,_0x3c8063=events['length'];_0x52ad17<_0x3c8063;_0x52ad17++){var _0x69bae3=events[_0x52ad17];var _0x4020ef=createListener('smsAccount:'+_0x69bae3,_0x29fa82);SmsAccountEvents['on'](_0x69bae3,_0x4020ef);}};