Built motion from commit (unavailable).|2.5.13
[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 _0x54f3=['save','remove','update','removeListener','length','chatInternalMessage:'];(function(_0xae7c2f,_0xf31e04){var _0x5d7001=function(_0x4eeadb){while(--_0x4eeadb){_0xae7c2f['push'](_0xae7c2f['shift']());}};_0x5d7001(++_0xf31e04);}(_0x54f3,0x120));var _0x354f=function(_0x8c43de,_0x90ff31){_0x8c43de=_0x8c43de-0x0;var _0xa6591b=_0x54f3[_0x8c43de];return _0xa6591b;};'use strict';var ChatInternalMessageEvents=require('./chatInternalMessage.events');var events=[_0x354f('0x0'),_0x354f('0x1'),_0x354f('0x2')];function createListener(_0x1cb51f,_0x2cd824){return function(_0x517a53){_0x2cd824['emit'](_0x1cb51f,_0x517a53);};}function removeListener(_0xe4efe,_0x86b73e){return function(){ChatInternalMessageEvents[_0x354f('0x3')](_0xe4efe,_0x86b73e);};}exports['register']=function(_0x5618ac){for(var _0x234ac6=0x0,_0x51cd16=events[_0x354f('0x4')];_0x234ac6<_0x51cd16;_0x234ac6++){var _0x4311ad=events[_0x234ac6];var _0x2f111a=createListener(_0x354f('0x5')+_0x4311ad,_0x5618ac);ChatInternalMessageEvents['on'](_0x4311ad,_0x2f111a);}};