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 _0x54cc=['removeListener','register','length','./smsQueue.events','save','remove','update','emit'];(function(_0x4b055c,_0x4b870b){var _0x4b62bb=function(_0x4884c2){while(--_0x4884c2){_0x4b055c['push'](_0x4b055c['shift']());}};_0x4b62bb(++_0x4b870b);}(_0x54cc,0x183));var _0xc54c=function(_0x551eb6,_0x3d4539){_0x551eb6=_0x551eb6-0x0;var _0x28147d=_0x54cc[_0x551eb6];return _0x28147d;};'use strict';var SmsQueueEvents=require(_0xc54c('0x0'));var events=[_0xc54c('0x1'),_0xc54c('0x2'),_0xc54c('0x3')];function createListener(_0x3c8d0d,_0x22f528){return function(_0x3b6340){_0x22f528[_0xc54c('0x4')](_0x3c8d0d,_0x3b6340);};}function removeListener(_0x54d5b7,_0x148f55){return function(){SmsQueueEvents[_0xc54c('0x5')](_0x54d5b7,_0x148f55);};}exports[_0xc54c('0x6')]=function(_0x553959){for(var _0xefc881=0x0,_0xac8826=events[_0xc54c('0x7')];_0xefc881<_0xac8826;_0xefc881++){var _0x3c9faa=events[_0xefc881];var _0xc398a=createListener('smsQueue:'+_0x3c9faa,_0x553959);SmsQueueEvents['on'](_0x3c9faa,_0xc398a);}};