Built motion from commit (unavailable).|2.4.20
[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 _0xfe57=['save','emit','removeListener','register','length','chatInternalMessage:','./chatInternalMessage.events'];(function(_0xb235dd,_0x56c711){var _0x4880af=function(_0x5cfeae){while(--_0x5cfeae){_0xb235dd['push'](_0xb235dd['shift']());}};_0x4880af(++_0x56c711);}(_0xfe57,0x195));var _0x7fe5=function(_0x2cf2e9,_0xd58ea1){_0x2cf2e9=_0x2cf2e9-0x0;var _0xd3670d=_0xfe57[_0x2cf2e9];return _0xd3670d;};'use strict';var ChatInternalMessageEvents=require(_0x7fe5('0x0'));var events=[_0x7fe5('0x1'),'remove','update'];function createListener(_0x3f7dca,_0x4744a9){return function(_0xc27f79){_0x4744a9[_0x7fe5('0x2')](_0x3f7dca,_0xc27f79);};}function removeListener(_0x89ad5f,_0x1254d2){return function(){ChatInternalMessageEvents[_0x7fe5('0x3')](_0x89ad5f,_0x1254d2);};}exports[_0x7fe5('0x4')]=function(_0x22e850){for(var _0x188cfb=0x0,_0xd6146b=events[_0x7fe5('0x5')];_0x188cfb<_0xd6146b;_0x188cfb++){var _0x36ff81=events[_0x188cfb];var _0x4ab081=createListener(_0x7fe5('0x6')+_0x36ff81,_0x22e850);ChatInternalMessageEvents['on'](_0x36ff81,_0x4ab081);}};