Built motion from commit (unavailable).|2.3.4
[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 _0x8e3f=['./chatInternalMessage.events','save','removeListener','register','length'];(function(_0x2641f9,_0x26715f){var _0x585741=function(_0x2d1462){while(--_0x2d1462){_0x2641f9['push'](_0x2641f9['shift']());}};_0x585741(++_0x26715f);}(_0x8e3f,0x13b));var _0xf8e3=function(_0x57b54c,_0x54ce0d){_0x57b54c=_0x57b54c-0x0;var _0x59cc19=_0x8e3f[_0x57b54c];return _0x59cc19;};'use strict';var ChatInternalMessageEvents=require(_0xf8e3('0x0'));var events=[_0xf8e3('0x1'),'remove','update'];function createListener(_0x4dcc1c,_0x3df320){return function(_0x3a3fbf){_0x3df320['emit'](_0x4dcc1c,_0x3a3fbf);};}function removeListener(_0x11c4f8,_0x3a2500){return function(){ChatInternalMessageEvents[_0xf8e3('0x2')](_0x11c4f8,_0x3a2500);};}exports[_0xf8e3('0x3')]=function(_0x5b7a93){for(var _0x52b3ee=0x0,_0x748164=events[_0xf8e3('0x4')];_0x52b3ee<_0x748164;_0x52b3ee++){var _0x32129b=events[_0x52b3ee];var _0x283b45=createListener('chatInternalMessage:'+_0x32129b,_0x5b7a93);ChatInternalMessageEvents['on'](_0x32129b,_0x283b45);}};