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 _0x0f43=['emit','removeListener','register','length','smsMessage:','remove','update'];(function(_0x4bc84a,_0x5772f2){var _0x3538b1=function(_0x1fb82d){while(--_0x1fb82d){_0x4bc84a['push'](_0x4bc84a['shift']());}};_0x3538b1(++_0x5772f2);}(_0x0f43,0xa6));var _0x30f4=function(_0x5f309e,_0x66e31){_0x5f309e=_0x5f309e-0x0;var _0x487b5e=_0x0f43[_0x5f309e];return _0x487b5e;};'use strict';var SmsMessageEvents=require('./smsMessage.events');var events=['save',_0x30f4('0x0'),_0x30f4('0x1')];function createListener(_0x31ba59,_0x321720){return function(_0x24cf76){_0x321720[_0x30f4('0x2')](_0x31ba59,_0x24cf76);};}function removeListener(_0x2aa5ae,_0x14b553){return function(){SmsMessageEvents[_0x30f4('0x3')](_0x2aa5ae,_0x14b553);};}exports[_0x30f4('0x4')]=function(_0x172161){for(var _0x5bf4b8=0x0,_0x4a3ff2=events[_0x30f4('0x5')];_0x5bf4b8<_0x4a3ff2;_0x5bf4b8++){var _0x1bc10e=events[_0x5bf4b8];var _0x5d93ce=createListener(_0x30f4('0x6')+_0x1bc10e,_0x172161);SmsMessageEvents['on'](_0x1bc10e,_0x5d93ce);}};