c270b45834f273a0338c4432643f88bc2c5f0cc3
[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 _0x6b4e=['removeListener','register','length','openchannelMessage:','save','emit'];(function(_0x4145ed,_0x1965e3){var _0x2294a6=function(_0x21c3bb){while(--_0x21c3bb){_0x4145ed['push'](_0x4145ed['shift']());}};_0x2294a6(++_0x1965e3);}(_0x6b4e,0x1a8));var _0xe6b4=function(_0x2aff56,_0x3ade94){_0x2aff56=_0x2aff56-0x0;var _0x2ffdce=_0x6b4e[_0x2aff56];return _0x2ffdce;};'use strict';var OpenchannelMessageEvents=require('./openchannelMessage.events');var events=[_0xe6b4('0x0'),'remove','update'];function createListener(_0x5c3328,_0x54da12){return function(_0x4566e9){_0x54da12[_0xe6b4('0x1')](_0x5c3328,_0x4566e9);};}function removeListener(_0x1aedc5,_0x344db1){return function(){OpenchannelMessageEvents[_0xe6b4('0x2')](_0x1aedc5,_0x344db1);};}exports[_0xe6b4('0x3')]=function(_0x598f8c){for(var _0x29c81b=0x0,_0x3458d8=events[_0xe6b4('0x4')];_0x29c81b<_0x3458d8;_0x29c81b++){var _0x1d062b=events[_0x29c81b];var _0x15cf31=createListener(_0xe6b4('0x5')+_0x1d062b,_0x598f8c);OpenchannelMessageEvents['on'](_0x1d062b,_0x15cf31);}};