Built motion from commit (unavailable).|2.5.4
[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 _0x4156=['emit','removeListener','register','./chatInternalMessage.events','save','remove','update'];(function(_0x29f78f,_0x29f78c){var _0x2ec768=function(_0x24d3c0){while(--_0x24d3c0){_0x29f78f['push'](_0x29f78f['shift']());}};_0x2ec768(++_0x29f78c);}(_0x4156,0xf1));var _0x6415=function(_0x1e1195,_0x306fa2){_0x1e1195=_0x1e1195-0x0;var _0x38304f=_0x4156[_0x1e1195];return _0x38304f;};'use strict';var ChatInternalMessageEvents=require(_0x6415('0x0'));var events=[_0x6415('0x1'),_0x6415('0x2'),_0x6415('0x3')];function createListener(_0x9e13c0,_0x5438c5){return function(_0x138d73){_0x5438c5[_0x6415('0x4')](_0x9e13c0,_0x138d73);};}function removeListener(_0xfd06c2,_0x25732f){return function(){ChatInternalMessageEvents[_0x6415('0x5')](_0xfd06c2,_0x25732f);};}exports[_0x6415('0x6')]=function(_0x192a98){for(var _0x496a42=0x0,_0x24cb0=events['length'];_0x496a42<_0x24cb0;_0x496a42++){var _0x4045ec=events[_0x496a42];var _0x266237=createListener('chatInternalMessage:'+_0x4045ec,_0x192a98);ChatInternalMessageEvents['on'](_0x4045ec,_0x266237);}};