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 _0x4f78=['./smsQueue.events','save','remove','update','removeListener','smsQueue:'];(function(_0x31975a,_0x4ccf89){var _0x4a2cef=function(_0x4fbc82){while(--_0x4fbc82){_0x31975a['push'](_0x31975a['shift']());}};_0x4a2cef(++_0x4ccf89);}(_0x4f78,0xfc));var _0x84f7=function(_0x1fc122,_0x5e2c17){_0x1fc122=_0x1fc122-0x0;var _0xa2cb13=_0x4f78[_0x1fc122];return _0xa2cb13;};'use strict';var SmsQueueEvents=require(_0x84f7('0x0'));var events=[_0x84f7('0x1'),_0x84f7('0x2'),_0x84f7('0x3')];function createListener(_0x4317c5,_0x17f24b){return function(_0x4120c7){_0x17f24b['emit'](_0x4317c5,_0x4120c7);};}function removeListener(_0x5d5e46,_0x96b3e0){return function(){SmsQueueEvents[_0x84f7('0x4')](_0x5d5e46,_0x96b3e0);};}exports['register']=function(_0x29fb92){for(var _0x18d99d=0x0,_0x434044=events['length'];_0x18d99d<_0x434044;_0x18d99d++){var _0x26d1ef=events[_0x18d99d];var _0x54eaff=createListener(_0x84f7('0x5')+_0x26d1ef,_0x29fb92);SmsQueueEvents['on'](_0x26d1ef,_0x54eaff);}};