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 _0x6ade=['smsMessage:','save','update','removeListener','length'];(function(_0x228b2d,_0x17a0da){var _0x421356=function(_0x317d17){while(--_0x317d17){_0x228b2d['push'](_0x228b2d['shift']());}};_0x421356(++_0x17a0da);}(_0x6ade,0x187));var _0xe6ad=function(_0x683914,_0x58098f){_0x683914=_0x683914-0x0;var _0x186574=_0x6ade[_0x683914];return _0x186574;};'use strict';var SmsMessageEvents=require('./smsMessage.events');var events=[_0xe6ad('0x0'),'remove',_0xe6ad('0x1')];function createListener(_0x1f1591,_0x48e726){return function(_0x2da474){_0x48e726['emit'](_0x1f1591,_0x2da474);};}function removeListener(_0x1f1aa9,_0x558a54){return function(){SmsMessageEvents[_0xe6ad('0x2')](_0x1f1aa9,_0x558a54);};}exports['register']=function(_0x53eabb){for(var _0x54c885=0x0,_0x2d667e=events[_0xe6ad('0x3')];_0x54c885<_0x2d667e;_0x54c885++){var _0x3c83c7=events[_0x54c885];var _0x4eb618=createListener(_0xe6ad('0x4')+_0x3c83c7,_0x53eabb);SmsMessageEvents['on'](_0x3c83c7,_0x4eb618);}};