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 _0x040a=['smsQueue:','./smsQueue.events','save','update','emit','register','length'];(function(_0x4294e5,_0x5a64a6){var _0x485e51=function(_0x485cf9){while(--_0x485cf9){_0x4294e5['push'](_0x4294e5['shift']());}};_0x485e51(++_0x5a64a6);}(_0x040a,0x1dd));var _0xa040=function(_0x2211ed,_0x1bca0b){_0x2211ed=_0x2211ed-0x0;var _0x4d78cc=_0x040a[_0x2211ed];return _0x4d78cc;};'use strict';var SmsQueueEvents=require(_0xa040('0x0'));var events=[_0xa040('0x1'),'remove',_0xa040('0x2')];function createListener(_0x4de93b,_0x383fd2){return function(_0x2416fe){_0x383fd2[_0xa040('0x3')](_0x4de93b,_0x2416fe);};}function removeListener(_0x16baee,_0x3a708f){return function(){SmsQueueEvents['removeListener'](_0x16baee,_0x3a708f);};}exports[_0xa040('0x4')]=function(_0x2423a0){for(var _0x3135e0=0x0,_0x3f5eb7=events[_0xa040('0x5')];_0x3135e0<_0x3f5eb7;_0x3135e0++){var _0xa8cde=events[_0x3135e0];var _0x2ab43d=createListener(_0xa040('0x6')+_0xa8cde,_0x2423a0);SmsQueueEvents['on'](_0xa8cde,_0x2ab43d);}};