b15fe1abd198ec04e9537677e900f7fd5189190b
[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 _0x6fc4=['length','openchannelMessage:','./openchannelMessage.events','save','removeListener','register'];(function(_0x443246,_0x199405){var _0xf91625=function(_0x6c01ff){while(--_0x6c01ff){_0x443246['push'](_0x443246['shift']());}};_0xf91625(++_0x199405);}(_0x6fc4,0x1a0));var _0x46fc=function(_0x2dd752,_0x59b4fc){_0x2dd752=_0x2dd752-0x0;var _0x297823=_0x6fc4[_0x2dd752];return _0x297823;};'use strict';var OpenchannelMessageEvents=require(_0x46fc('0x0'));var events=[_0x46fc('0x1'),'remove','update'];function createListener(_0xab7c91,_0x5caf97){return function(_0x47e69d){_0x5caf97['emit'](_0xab7c91,_0x47e69d);};}function removeListener(_0x34e479,_0x27d5dd){return function(){OpenchannelMessageEvents[_0x46fc('0x2')](_0x34e479,_0x27d5dd);};}exports[_0x46fc('0x3')]=function(_0x3f4e43){for(var _0x7656d9=0x0,_0x3c4f75=events[_0x46fc('0x4')];_0x7656d9<_0x3c4f75;_0x7656d9++){var _0x5ca981=events[_0x7656d9];var _0x4a7762=createListener(_0x46fc('0x5')+_0x5ca981,_0x3f4e43);OpenchannelMessageEvents['on'](_0x5ca981,_0x4a7762);}};