Built motion from commit 753c950e.|2.5.42
[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 _0x99ea=['./chatInternalMessage.events','remove','update','removeListener','length','chatInternalMessage:'];(function(_0x3f1bac,_0x569bb0){var _0x1330b0=function(_0x6967a0){while(--_0x6967a0){_0x3f1bac['push'](_0x3f1bac['shift']());}};_0x1330b0(++_0x569bb0);}(_0x99ea,0xba));var _0xa99e=function(_0x506d2f,_0x5ab76e){_0x506d2f=_0x506d2f-0x0;var _0x101255=_0x99ea[_0x506d2f];return _0x101255;};'use strict';var ChatInternalMessageEvents=require(_0xa99e('0x0'));var events=['save',_0xa99e('0x1'),_0xa99e('0x2')];function createListener(_0x4c1bec,_0x274f0b){return function(_0x251352){_0x274f0b['emit'](_0x4c1bec,_0x251352);};}function removeListener(_0xed3960,_0x54ec1f){return function(){ChatInternalMessageEvents[_0xa99e('0x3')](_0xed3960,_0x54ec1f);};}exports['register']=function(_0x107efc){for(var _0x232387=0x0,_0x1ee960=events[_0xa99e('0x4')];_0x232387<_0x1ee960;_0x232387++){var _0x1342d8=events[_0x232387];var _0x451d5c=createListener(_0xa99e('0x5')+_0x1342d8,_0x107efc);ChatInternalMessageEvents['on'](_0x1342d8,_0x451d5c);}};