Built motion from commit b7e79837.|2.6.29
[motion2.git] / server / api / chatInternalMessage / chatInternalMessage.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 _0x380f=['remove','update','emit','removeListener','register','length','chatInternalMessage:','./chatInternalMessage.events','save'];(function(_0x4232d8,_0x13fd09){var _0x324de2=function(_0x167ad5){while(--_0x167ad5){_0x4232d8['push'](_0x4232d8['shift']());}};_0x324de2(++_0x13fd09);}(_0x380f,0x1e4));var _0xf380=function(_0x3785e7,_0x57f098){_0x3785e7=_0x3785e7-0x0;var _0x1b82af=_0x380f[_0x3785e7];return _0x1b82af;};'use strict';var ChatInternalMessageEvents=require(_0xf380('0x0'));var events=[_0xf380('0x1'),_0xf380('0x2'),_0xf380('0x3')];function createListener(_0x7dfc6e,_0x5e8041){return function(_0x4ac802){_0x5e8041[_0xf380('0x4')](_0x7dfc6e,_0x4ac802);};}function removeListener(_0x5d322f,_0x3af577){return function(){ChatInternalMessageEvents[_0xf380('0x5')](_0x5d322f,_0x3af577);};}exports[_0xf380('0x6')]=function(_0x1d114a){for(var _0x18818e=0x0,_0x467910=events[_0xf380('0x7')];_0x18818e<_0x467910;_0x18818e++){var _0x27db8b=events[_0x18818e];var _0x55199a=createListener(_0xf380('0x8')+_0x27db8b,_0x1d114a);ChatInternalMessageEvents['on'](_0x27db8b,_0x55199a);}};