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 _0x7c8b=['smsQueue:','./smsQueue.events','save','update','emit','removeListener','register','length'];(function(_0x1e8381,_0x42e7cf){var _0x170e5d=function(_0x3dea7d){while(--_0x3dea7d){_0x1e8381['push'](_0x1e8381['shift']());}};_0x170e5d(++_0x42e7cf);}(_0x7c8b,0xe9));var _0xb7c8=function(_0x48368c,_0x5e224a){_0x48368c=_0x48368c-0x0;var _0x37b9a0=_0x7c8b[_0x48368c];return _0x37b9a0;};'use strict';var SmsQueueEvents=require(_0xb7c8('0x0'));var events=[_0xb7c8('0x1'),'remove',_0xb7c8('0x2')];function createListener(_0x1536e4,_0x86efcf){return function(_0x59e274){_0x86efcf[_0xb7c8('0x3')](_0x1536e4,_0x59e274);};}function removeListener(_0x44dcd4,_0xb7b88a){return function(){SmsQueueEvents[_0xb7c8('0x4')](_0x44dcd4,_0xb7b88a);};}exports[_0xb7c8('0x5')]=function(_0x2bb3ad){for(var _0x2cfecc=0x0,_0xd90b83=events[_0xb7c8('0x6')];_0x2cfecc<_0xd90b83;_0x2cfecc++){var _0x5bd296=events[_0x2cfecc];var _0x5a70e4=createListener(_0xb7c8('0x7')+_0x5bd296,_0x2bb3ad);SmsQueueEvents['on'](_0x5bd296,_0x5a70e4);}};