Built motion from commit 1fa89557.|2.6.10
[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 _0xdd7c=['update','emit','register','length','chatInternalMessage:','./chatInternalMessage.events','save','remove'];(function(_0x155841,_0x187f38){var _0x5a80c7=function(_0x31edd5){while(--_0x31edd5){_0x155841['push'](_0x155841['shift']());}};_0x5a80c7(++_0x187f38);}(_0xdd7c,0x75));var _0xcdd7=function(_0x421cf8,_0x23152c){_0x421cf8=_0x421cf8-0x0;var _0x145c48=_0xdd7c[_0x421cf8];return _0x145c48;};'use strict';var ChatInternalMessageEvents=require(_0xcdd7('0x0'));var events=[_0xcdd7('0x1'),_0xcdd7('0x2'),_0xcdd7('0x3')];function createListener(_0x527a8f,_0x3af6bb){return function(_0x79dd98){_0x3af6bb[_0xcdd7('0x4')](_0x527a8f,_0x79dd98);};}function removeListener(_0x544dc8,_0xd32c42){return function(){ChatInternalMessageEvents['removeListener'](_0x544dc8,_0xd32c42);};}exports[_0xcdd7('0x5')]=function(_0x846ee1){for(var _0x16ee80=0x0,_0x1183a1=events[_0xcdd7('0x6')];_0x16ee80<_0x1183a1;_0x16ee80++){var _0x2771fb=events[_0x16ee80];var _0x6788bd=createListener(_0xcdd7('0x7')+_0x2771fb,_0x846ee1);ChatInternalMessageEvents['on'](_0x2771fb,_0x6788bd);}};