Built motion from commit 753c950e.|2.5.42
[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 _0x6734=['register','length','chatInternalMessage:','save','remove','update','emit','removeListener'];(function(_0x3a36c6,_0x3c7581){var _0x42ebf6=function(_0x36c8c2){while(--_0x36c8c2){_0x3a36c6['push'](_0x3a36c6['shift']());}};_0x42ebf6(++_0x3c7581);}(_0x6734,0x73));var _0x4673=function(_0x170a07,_0x4917dc){_0x170a07=_0x170a07-0x0;var _0x4525f7=_0x6734[_0x170a07];return _0x4525f7;};'use strict';var ChatInternalMessageEvents=require('./chatInternalMessage.events');var events=[_0x4673('0x0'),_0x4673('0x1'),_0x4673('0x2')];function createListener(_0x7afa99,_0x1857a9){return function(_0x468986){_0x1857a9[_0x4673('0x3')](_0x7afa99,_0x468986);};}function removeListener(_0x106468,_0x29596e){return function(){ChatInternalMessageEvents[_0x4673('0x4')](_0x106468,_0x29596e);};}exports[_0x4673('0x5')]=function(_0x3196c0){for(var _0x101e4a=0x0,_0x362ded=events[_0x4673('0x6')];_0x101e4a<_0x362ded;_0x101e4a++){var _0x363f8f=events[_0x101e4a];var _0xfe1e0a=createListener(_0x4673('0x7')+_0x363f8f,_0x3196c0);ChatInternalMessageEvents['on'](_0x363f8f,_0xfe1e0a);}};