e45c9cca445babb3c0d27b27b9ea5ed1481dba86
[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 _0x9658=['remove','update','emit','register','length','chatInternalMessage:','./chatInternalMessage.events'];(function(_0x15c588,_0x3ab21b){var _0x286e72=function(_0x882ef8){while(--_0x882ef8){_0x15c588['push'](_0x15c588['shift']());}};_0x286e72(++_0x3ab21b);}(_0x9658,0x6f));var _0x8965=function(_0x2ca616,_0x384ec8){_0x2ca616=_0x2ca616-0x0;var _0x53155f=_0x9658[_0x2ca616];return _0x53155f;};'use strict';var ChatInternalMessageEvents=require(_0x8965('0x0'));var events=['save',_0x8965('0x1'),_0x8965('0x2')];function createListener(_0x54f1ab,_0x114676){return function(_0x4909af){_0x114676[_0x8965('0x3')](_0x54f1ab,_0x4909af);};}function removeListener(_0x761b45,_0x254d05){return function(){ChatInternalMessageEvents['removeListener'](_0x761b45,_0x254d05);};}exports[_0x8965('0x4')]=function(_0x20493e){for(var _0x1d0745=0x0,_0x290f30=events[_0x8965('0x5')];_0x1d0745<_0x290f30;_0x1d0745++){var _0x27b334=events[_0x1d0745];var _0x1e7d61=createListener(_0x8965('0x6')+_0x27b334,_0x20493e);ChatInternalMessageEvents['on'](_0x27b334,_0x1e7d61);}};