Built motion from commit e6806ed6.|2.6.0
[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 _0x8b5f=['register','length','openchannelMessage:','remove','update','emit','removeListener'];(function(_0x59f5e4,_0x55e898){var _0x53acb7=function(_0x41629c){while(--_0x41629c){_0x59f5e4['push'](_0x59f5e4['shift']());}};_0x53acb7(++_0x55e898);}(_0x8b5f,0x106));var _0xf8b5=function(_0x55e6f1,_0x50dfed){_0x55e6f1=_0x55e6f1-0x0;var _0x27addc=_0x8b5f[_0x55e6f1];return _0x27addc;};'use strict';var OpenchannelMessageEvents=require('./openchannelMessage.events');var events=['save',_0xf8b5('0x0'),_0xf8b5('0x1')];function createListener(_0x4c7602,_0x117f87){return function(_0x499ab9){_0x117f87[_0xf8b5('0x2')](_0x4c7602,_0x499ab9);};}function removeListener(_0x160b34,_0x45c578){return function(){OpenchannelMessageEvents[_0xf8b5('0x3')](_0x160b34,_0x45c578);};}exports[_0xf8b5('0x4')]=function(_0x4716c8){for(var _0x24da59=0x0,_0x4184c3=events[_0xf8b5('0x5')];_0x24da59<_0x4184c3;_0x24da59++){var _0x195ffe=events[_0x24da59];var _0x435110=createListener(_0xf8b5('0x6')+_0x195ffe,_0x4716c8);OpenchannelMessageEvents['on'](_0x195ffe,_0x435110);}};