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 _0xade2=['remove','emit','removeListener','register','smsQueue:'];(function(_0x655011,_0x511d14){var _0x528446=function(_0x39a6c9){while(--_0x39a6c9){_0x655011['push'](_0x655011['shift']());}};_0x528446(++_0x511d14);}(_0xade2,0x82));var _0x2ade=function(_0x5e3d40,_0x389949){_0x5e3d40=_0x5e3d40-0x0;var _0x46e1a5=_0xade2[_0x5e3d40];return _0x46e1a5;};'use strict';var SmsQueueEvents=require('./smsQueue.events');var events=['save',_0x2ade('0x0'),'update'];function createListener(_0x119ec4,_0x8afabb){return function(_0x3a7bac){_0x8afabb[_0x2ade('0x1')](_0x119ec4,_0x3a7bac);};}function removeListener(_0x55af6f,_0x3af14d){return function(){SmsQueueEvents[_0x2ade('0x2')](_0x55af6f,_0x3af14d);};}exports[_0x2ade('0x3')]=function(_0x1b8b82){for(var _0x1769cc=0x0,_0x47453e=events['length'];_0x1769cc<_0x47453e;_0x1769cc++){var _0x449885=events[_0x1769cc];var _0x56a7b4=createListener(_0x2ade('0x4')+_0x449885,_0x1b8b82);SmsQueueEvents['on'](_0x449885,_0x56a7b4);}};