Built motion from commit (unavailable).|2.5.11
[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 _0xd847=['length','chatInternalMessage:','./chatInternalMessage.events','save','remove','update','emit','removeListener'];(function(_0xa148b7,_0x2f3eb2){var _0x51efd3=function(_0x34bcec){while(--_0x34bcec){_0xa148b7['push'](_0xa148b7['shift']());}};_0x51efd3(++_0x2f3eb2);}(_0xd847,0x18a));var _0x7d84=function(_0x1d96b6,_0x289b87){_0x1d96b6=_0x1d96b6-0x0;var _0x2667d2=_0xd847[_0x1d96b6];return _0x2667d2;};'use strict';var ChatInternalMessageEvents=require(_0x7d84('0x0'));var events=[_0x7d84('0x1'),_0x7d84('0x2'),_0x7d84('0x3')];function createListener(_0x58816d,_0x5a1e39){return function(_0x4492d5){_0x5a1e39[_0x7d84('0x4')](_0x58816d,_0x4492d5);};}function removeListener(_0x207e6f,_0x15f200){return function(){ChatInternalMessageEvents[_0x7d84('0x5')](_0x207e6f,_0x15f200);};}exports['register']=function(_0x1544e7){for(var _0x5d8f76=0x0,_0x3c57cd=events[_0x7d84('0x6')];_0x5d8f76<_0x3c57cd;_0x5d8f76++){var _0x1d6297=events[_0x5d8f76];var _0x32da6d=createListener(_0x7d84('0x7')+_0x1d6297,_0x1544e7);ChatInternalMessageEvents['on'](_0x1d6297,_0x32da6d);}};