Built motion from commit b0a9a629.|2.6.33
[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 _0xc4f5=['emit','register','length','save','remove','update'];(function(_0x210b93,_0x133e6d){var _0x2b020f=function(_0x3f9601){while(--_0x3f9601){_0x210b93['push'](_0x210b93['shift']());}};_0x2b020f(++_0x133e6d);}(_0xc4f5,0xa5));var _0x5c4f=function(_0x418f0b,_0xe47fcf){_0x418f0b=_0x418f0b-0x0;var _0x4c0491=_0xc4f5[_0x418f0b];return _0x4c0491;};'use strict';var OpenchannelMessageEvents=require('./openchannelMessage.events');var events=[_0x5c4f('0x0'),_0x5c4f('0x1'),_0x5c4f('0x2')];function createListener(_0x515f4c,_0x11c151){return function(_0x221555){_0x11c151[_0x5c4f('0x3')](_0x515f4c,_0x221555);};}function removeListener(_0xfd69b2,_0x2676f7){return function(){OpenchannelMessageEvents['removeListener'](_0xfd69b2,_0x2676f7);};}exports[_0x5c4f('0x4')]=function(_0x299b8b){for(var _0x3fd7bb=0x0,_0x123651=events[_0x5c4f('0x5')];_0x3fd7bb<_0x123651;_0x3fd7bb++){var _0x48f095=events[_0x3fd7bb];var _0x1ec0c8=createListener('openchannelMessage:'+_0x48f095,_0x299b8b);OpenchannelMessageEvents['on'](_0x48f095,_0x1ec0c8);}};