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 _0xf288=['length','smsMessage:','remove','update','emit','removeListener'];(function(_0x3800ef,_0x24925f){var _0x3bca22=function(_0x10a19f){while(--_0x10a19f){_0x3800ef['push'](_0x3800ef['shift']());}};_0x3bca22(++_0x24925f);}(_0xf288,0x1b2));var _0x8f28=function(_0x91384,_0x545eef){_0x91384=_0x91384-0x0;var _0x44daa0=_0xf288[_0x91384];return _0x44daa0;};'use strict';var SmsMessageEvents=require('./smsMessage.events');var events=['save',_0x8f28('0x0'),_0x8f28('0x1')];function createListener(_0x471f4c,_0x2db92d){return function(_0x4af326){_0x2db92d[_0x8f28('0x2')](_0x471f4c,_0x4af326);};}function removeListener(_0x288244,_0x592773){return function(){SmsMessageEvents[_0x8f28('0x3')](_0x288244,_0x592773);};}exports['register']=function(_0x565ba6){for(var _0x46d4b8=0x0,_0x3a68cf=events[_0x8f28('0x4')];_0x46d4b8<_0x3a68cf;_0x46d4b8++){var _0x1e79e5=events[_0x46d4b8];var _0x5c8716=createListener(_0x8f28('0x5')+_0x1e79e5,_0x565ba6);SmsMessageEvents['on'](_0x1e79e5,_0x5c8716);}};