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 _0x99a0=['smsQueue:','./smsQueue.events','save','emit','removeListener','register'];(function(_0xa464c9,_0x7c86d8){var _0x3d73c4=function(_0x5c2056){while(--_0x5c2056){_0xa464c9['push'](_0xa464c9['shift']());}};_0x3d73c4(++_0x7c86d8);}(_0x99a0,0x121));var _0x099a=function(_0x41d206,_0x4347b7){_0x41d206=_0x41d206-0x0;var _0x2c77a6=_0x99a0[_0x41d206];return _0x2c77a6;};'use strict';var SmsQueueEvents=require(_0x099a('0x0'));var events=[_0x099a('0x1'),'remove','update'];function createListener(_0x5b4308,_0x593af0){return function(_0x3f281a){_0x593af0[_0x099a('0x2')](_0x5b4308,_0x3f281a);};}function removeListener(_0x5d6b40,_0x21d681){return function(){SmsQueueEvents[_0x099a('0x3')](_0x5d6b40,_0x21d681);};}exports[_0x099a('0x4')]=function(_0x215a07){for(var _0x2f1aea=0x0,_0xaebf62=events['length'];_0x2f1aea<_0xaebf62;_0x2f1aea++){var _0x18f862=events[_0x2f1aea];var _0x2da8c8=createListener(_0x099a('0x5')+_0x18f862,_0x215a07);SmsQueueEvents['on'](_0x18f862,_0x2da8c8);}};