Built motion from commit 14588770.|2.5.38
[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 _0xfc98=['register','length','chatInternalMessage:','./chatInternalMessage.events','remove','update','emit','removeListener'];(function(_0x38e526,_0x200d7f){var _0x4db45f=function(_0x34b4e9){while(--_0x34b4e9){_0x38e526['push'](_0x38e526['shift']());}};_0x4db45f(++_0x200d7f);}(_0xfc98,0x14b));var _0x8fc9=function(_0x5d6456,_0x58ecc7){_0x5d6456=_0x5d6456-0x0;var _0x4d66c1=_0xfc98[_0x5d6456];return _0x4d66c1;};'use strict';var ChatInternalMessageEvents=require(_0x8fc9('0x0'));var events=['save',_0x8fc9('0x1'),_0x8fc9('0x2')];function createListener(_0x22ca2a,_0x1a8c07){return function(_0xa48c07){_0x1a8c07[_0x8fc9('0x3')](_0x22ca2a,_0xa48c07);};}function removeListener(_0x130ff6,_0x4cc5a0){return function(){ChatInternalMessageEvents[_0x8fc9('0x4')](_0x130ff6,_0x4cc5a0);};}exports[_0x8fc9('0x5')]=function(_0x142743){for(var _0x1fd480=0x0,_0x30b12b=events[_0x8fc9('0x6')];_0x1fd480<_0x30b12b;_0x1fd480++){var _0x592733=events[_0x1fd480];var _0x26fbef=createListener(_0x8fc9('0x7')+_0x592733,_0x142743);ChatInternalMessageEvents['on'](_0x592733,_0x26fbef);}};