6fe989be7ea272e5c40c016a55fcc1210abf067e
[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 _0xec90=['save','update','emit','removeListener','register','openchannelMessage:','./openchannelMessage.events'];(function(_0x3947c9,_0x4d6c97){var _0x2e7871=function(_0x1236cc){while(--_0x1236cc){_0x3947c9['push'](_0x3947c9['shift']());}};_0x2e7871(++_0x4d6c97);}(_0xec90,0x19c));var _0x0ec9=function(_0x4ae6d7,_0x4ccc59){_0x4ae6d7=_0x4ae6d7-0x0;var _0x18eb21=_0xec90[_0x4ae6d7];return _0x18eb21;};'use strict';var OpenchannelMessageEvents=require(_0x0ec9('0x0'));var events=[_0x0ec9('0x1'),'remove',_0x0ec9('0x2')];function createListener(_0x21468f,_0x11e195){return function(_0xf47b73){_0x11e195[_0x0ec9('0x3')](_0x21468f,_0xf47b73);};}function removeListener(_0x291454,_0x1e06e6){return function(){OpenchannelMessageEvents[_0x0ec9('0x4')](_0x291454,_0x1e06e6);};}exports[_0x0ec9('0x5')]=function(_0x109216){for(var _0x1bd3c3=0x0,_0x292af3=events['length'];_0x1bd3c3<_0x292af3;_0x1bd3c3++){var _0x2354ad=events[_0x1bd3c3];var _0x39bcce=createListener(_0x0ec9('0x6')+_0x2354ad,_0x109216);OpenchannelMessageEvents['on'](_0x2354ad,_0x39bcce);}};