Built motion from commit 87cd5f02.|2.5.48
[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 _0xc986=['save','remove','update','emit','removeListener','register','length','openchannelMessage:','./openchannelMessage.events'];(function(_0x948dd6,_0x275643){var _0x4fc43d=function(_0x1176c4){while(--_0x1176c4){_0x948dd6['push'](_0x948dd6['shift']());}};_0x4fc43d(++_0x275643);}(_0xc986,0xce));var _0x6c98=function(_0x118f56,_0x16bf9c){_0x118f56=_0x118f56-0x0;var _0x5a23ec=_0xc986[_0x118f56];return _0x5a23ec;};'use strict';var OpenchannelMessageEvents=require(_0x6c98('0x0'));var events=[_0x6c98('0x1'),_0x6c98('0x2'),_0x6c98('0x3')];function createListener(_0x2db818,_0x372d7e){return function(_0x2b744a){_0x372d7e[_0x6c98('0x4')](_0x2db818,_0x2b744a);};}function removeListener(_0x46aa05,_0x4cb111){return function(){OpenchannelMessageEvents[_0x6c98('0x5')](_0x46aa05,_0x4cb111);};}exports[_0x6c98('0x6')]=function(_0x244fcc){for(var _0x36212f=0x0,_0x22f884=events[_0x6c98('0x7')];_0x36212f<_0x22f884;_0x36212f++){var _0x312084=events[_0x36212f];var _0x3a1efe=createListener(_0x6c98('0x8')+_0x312084,_0x244fcc);OpenchannelMessageEvents['on'](_0x312084,_0x3a1efe);}};