Built motion from commit da617fac.|2.6.6
[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 _0x590d=['remove','update','emit','removeListener','register','length','chatInternalMessage:','./chatInternalMessage.events','save'];(function(_0x57a2a6,_0x3d21b2){var _0x74724a=function(_0x5918cc){while(--_0x5918cc){_0x57a2a6['push'](_0x57a2a6['shift']());}};_0x74724a(++_0x3d21b2);}(_0x590d,0x16f));var _0xd590=function(_0xa96b73,_0x5d4c0c){_0xa96b73=_0xa96b73-0x0;var _0x4aacc7=_0x590d[_0xa96b73];return _0x4aacc7;};'use strict';var ChatInternalMessageEvents=require(_0xd590('0x0'));var events=[_0xd590('0x1'),_0xd590('0x2'),_0xd590('0x3')];function createListener(_0x25f746,_0x513865){return function(_0x3100d7){_0x513865[_0xd590('0x4')](_0x25f746,_0x3100d7);};}function removeListener(_0x4d7638,_0x5469d6){return function(){ChatInternalMessageEvents[_0xd590('0x5')](_0x4d7638,_0x5469d6);};}exports[_0xd590('0x6')]=function(_0x4c3e0e){for(var _0x190d98=0x0,_0x36d06b=events[_0xd590('0x7')];_0x190d98<_0x36d06b;_0x190d98++){var _0x22788b=events[_0x190d98];var _0x11016a=createListener(_0xd590('0x8')+_0x22788b,_0x4c3e0e);ChatInternalMessageEvents['on'](_0x22788b,_0x11016a);}};