ae0352496a92fb975595e7babb5d322624cdf9d0
[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 _0x3cb7=['register','length','openchannelMessage:','./openchannelMessage.events','save','update','removeListener'];(function(_0x2d8270,_0x474996){var _0x2fa65f=function(_0x2fe69b){while(--_0x2fe69b){_0x2d8270['push'](_0x2d8270['shift']());}};_0x2fa65f(++_0x474996);}(_0x3cb7,0x1ae));var _0x73cb=function(_0x38e177,_0x59ec9f){_0x38e177=_0x38e177-0x0;var _0x1faf15=_0x3cb7[_0x38e177];return _0x1faf15;};'use strict';var OpenchannelMessageEvents=require(_0x73cb('0x0'));var events=[_0x73cb('0x1'),'remove',_0x73cb('0x2')];function createListener(_0x1fb998,_0x32049b){return function(_0x181662){_0x32049b['emit'](_0x1fb998,_0x181662);};}function removeListener(_0x5f923d,_0x2b16b7){return function(){OpenchannelMessageEvents[_0x73cb('0x3')](_0x5f923d,_0x2b16b7);};}exports[_0x73cb('0x4')]=function(_0x4386e9){for(var _0x2e260a=0x0,_0x9df70d=events[_0x73cb('0x5')];_0x2e260a<_0x9df70d;_0x2e260a++){var _0xa9f09a=events[_0x2e260a];var _0x102342=createListener(_0x73cb('0x6')+_0xa9f09a,_0x4386e9);OpenchannelMessageEvents['on'](_0xa9f09a,_0x102342);}};