fe4a44e1d28a2ff9abbd42a5fd052eef90f34fda
[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 _0x2736=['remove','update','emit','register','chatInternalMessage:','./chatInternalMessage.events'];(function(_0x3b96cf,_0x1592f2){var _0x2e315a=function(_0x21fa50){while(--_0x21fa50){_0x3b96cf['push'](_0x3b96cf['shift']());}};_0x2e315a(++_0x1592f2);}(_0x2736,0x1a9));var _0x6273=function(_0x1f4449,_0xe1b863){_0x1f4449=_0x1f4449-0x0;var _0x1c860a=_0x2736[_0x1f4449];return _0x1c860a;};'use strict';var ChatInternalMessageEvents=require(_0x6273('0x0'));var events=['save',_0x6273('0x1'),_0x6273('0x2')];function createListener(_0x167f59,_0x1bce99){return function(_0x2f4050){_0x1bce99[_0x6273('0x3')](_0x167f59,_0x2f4050);};}function removeListener(_0x345be5,_0x2b4e6e){return function(){ChatInternalMessageEvents['removeListener'](_0x345be5,_0x2b4e6e);};}exports[_0x6273('0x4')]=function(_0x339d4c){for(var _0x2c71c6=0x0,_0x51e275=events['length'];_0x2c71c6<_0x51e275;_0x2c71c6++){var _0x5b2e75=events[_0x2c71c6];var _0x579311=createListener(_0x6273('0x5')+_0x5b2e75,_0x339d4c);ChatInternalMessageEvents['on'](_0x5b2e75,_0x579311);}};