Built motion from commit 092f8824.|2.5.49
[motion2.git] / server / api / openchannelMessage / openchannelMessage.socket.js
1 // *************************************************************************
2 // *                                                                       *
3 // * xCALLY Motion -  The Omnichannel Contact Center                       *
4 // * Copyright (c) Xenialab s.r.l. All Rights Reserved                     *
5 // *                                                                       *
6 // *************************************************************************
7 // *                                                                       *
8 // * Email: info@xcally.com                                                *
9 // * Website: https://www.xcally.com                                       *
10 // *                                                                       *
11 // *************************************************************************
12 // *                                                                       *
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.                         *
16 // *                                                                       *
17 // *************************************************************************
18 var _0xe64b=['save','remove','emit','register','openchannelMessage:','./openchannelMessage.events'];(function(_0x2a559e,_0x5eff58){var _0xaba6d3=function(_0x3fc9c3){while(--_0x3fc9c3){_0x2a559e['push'](_0x2a559e['shift']());}};_0xaba6d3(++_0x5eff58);}(_0xe64b,0x1a3));var _0xbe64=function(_0xba6d97,_0x19df72){_0xba6d97=_0xba6d97-0x0;var _0x472450=_0xe64b[_0xba6d97];return _0x472450;};'use strict';var OpenchannelMessageEvents=require(_0xbe64('0x0'));var events=[_0xbe64('0x1'),_0xbe64('0x2'),'update'];function createListener(_0x65fcae,_0xadf1c5){return function(_0x4d5ff8){_0xadf1c5[_0xbe64('0x3')](_0x65fcae,_0x4d5ff8);};}function removeListener(_0x24e586,_0x4e62da){return function(){OpenchannelMessageEvents['removeListener'](_0x24e586,_0x4e62da);};}exports[_0xbe64('0x4')]=function(_0x4286e3){for(var _0x37a226=0x0,_0x56f0cc=events['length'];_0x37a226<_0x56f0cc;_0x37a226++){var _0xe3eabc=events[_0x37a226];var _0x1b4025=createListener(_0xbe64('0x5')+_0xe3eabc,_0x4286e3);OpenchannelMessageEvents['on'](_0xe3eabc,_0x1b4025);}};