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 _0x9f5a=['update','emit','register','length','smsQueue:','./smsQueue.events','save','remove'];(function(_0x5f530f,_0x2418ef){var _0xbb64d9=function(_0x1ec9c2){while(--_0x1ec9c2){_0x5f530f['push'](_0x5f530f['shift']());}};_0xbb64d9(++_0x2418ef);}(_0x9f5a,0xbd));var _0xa9f5=function(_0x5a1c5b,_0x2fb65e){_0x5a1c5b=_0x5a1c5b-0x0;var _0x1bfb1b=_0x9f5a[_0x5a1c5b];return _0x1bfb1b;};'use strict';var SmsQueueEvents=require(_0xa9f5('0x0'));var events=[_0xa9f5('0x1'),_0xa9f5('0x2'),_0xa9f5('0x3')];function createListener(_0x546306,_0x4268b0){return function(_0x45e3f5){_0x4268b0[_0xa9f5('0x4')](_0x546306,_0x45e3f5);};}function removeListener(_0x4eeedd,_0x20f51f){return function(){SmsQueueEvents['removeListener'](_0x4eeedd,_0x20f51f);};}exports[_0xa9f5('0x5')]=function(_0x219e89){for(var _0x49e337=0x0,_0x6c040d=events[_0xa9f5('0x6')];_0x49e337<_0x6c040d;_0x49e337++){var _0x3f644f=events[_0x49e337];var _0x1f6c78=createListener(_0xa9f5('0x7')+_0x3f644f,_0x219e89);SmsQueueEvents['on'](_0x3f644f,_0x1f6c78);}};