Built motion from commit (unavailable).|2.5.22
[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 _0xc999=['remove','update','removeListener','chatInternalMessage:','save'];(function(_0x325de2,_0x3b8b2c){var _0x5553d0=function(_0x4bab56){while(--_0x4bab56){_0x325de2['push'](_0x325de2['shift']());}};_0x5553d0(++_0x3b8b2c);}(_0xc999,0x176));var _0x9c99=function(_0x5e6ea3,_0x9addd2){_0x5e6ea3=_0x5e6ea3-0x0;var _0x4048b5=_0xc999[_0x5e6ea3];return _0x4048b5;};'use strict';var ChatInternalMessageEvents=require('./chatInternalMessage.events');var events=[_0x9c99('0x0'),_0x9c99('0x1'),_0x9c99('0x2')];function createListener(_0x4cf49d,_0x590362){return function(_0x5473fe){_0x590362['emit'](_0x4cf49d,_0x5473fe);};}function removeListener(_0x3cecf2,_0x47e037){return function(){ChatInternalMessageEvents[_0x9c99('0x3')](_0x3cecf2,_0x47e037);};}exports['register']=function(_0x35f5f4){for(var _0x1ce762=0x0,_0xe80252=events['length'];_0x1ce762<_0xe80252;_0x1ce762++){var _0xfa25e1=events[_0x1ce762];var _0x323317=createListener(_0x9c99('0x4')+_0xfa25e1,_0x35f5f4);ChatInternalMessageEvents['on'](_0xfa25e1,_0x323317);}};