Built motion from commit a61a4a20.|2.5.46
[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 _0x16ec=['register','length','chatInternalMessage:','./chatInternalMessage.events','remove','update','removeListener'];(function(_0x31b11d,_0x5d7fa9){var _0x1c1668=function(_0x1dda89){while(--_0x1dda89){_0x31b11d['push'](_0x31b11d['shift']());}};_0x1c1668(++_0x5d7fa9);}(_0x16ec,0x1b5));var _0xc16e=function(_0x1243d8,_0x59a32a){_0x1243d8=_0x1243d8-0x0;var _0x461d8e=_0x16ec[_0x1243d8];return _0x461d8e;};'use strict';var ChatInternalMessageEvents=require(_0xc16e('0x0'));var events=['save',_0xc16e('0x1'),_0xc16e('0x2')];function createListener(_0x2593cd,_0x137e3e){return function(_0x2863c1){_0x137e3e['emit'](_0x2593cd,_0x2863c1);};}function removeListener(_0xa838e1,_0x1042c6){return function(){ChatInternalMessageEvents[_0xc16e('0x3')](_0xa838e1,_0x1042c6);};}exports[_0xc16e('0x4')]=function(_0x10d1a3){for(var _0x34dc6f=0x0,_0x44adda=events[_0xc16e('0x5')];_0x34dc6f<_0x44adda;_0x34dc6f++){var _0x1980c8=events[_0x34dc6f];var _0x1a8b4a=createListener(_0xc16e('0x6')+_0x1980c8,_0x10d1a3);ChatInternalMessageEvents['on'](_0x1980c8,_0x1a8b4a);}};