Built motion from commit ddca4d0d.|2.5.47
[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 _0x3ebd=['length','chatInternalMessage:','./chatInternalMessage.events','save','emit','removeListener'];(function(_0x6e29a,_0x1501f7){var _0x2fce05=function(_0x5cd15e){while(--_0x5cd15e){_0x6e29a['push'](_0x6e29a['shift']());}};_0x2fce05(++_0x1501f7);}(_0x3ebd,0xbc));var _0xd3eb=function(_0x54f6bc,_0x17dad1){_0x54f6bc=_0x54f6bc-0x0;var _0x40d885=_0x3ebd[_0x54f6bc];return _0x40d885;};'use strict';var ChatInternalMessageEvents=require(_0xd3eb('0x0'));var events=[_0xd3eb('0x1'),'remove','update'];function createListener(_0x47e1f7,_0x149b4b){return function(_0x19b9a1){_0x149b4b[_0xd3eb('0x2')](_0x47e1f7,_0x19b9a1);};}function removeListener(_0x5b3cce,_0x4d342f){return function(){ChatInternalMessageEvents[_0xd3eb('0x3')](_0x5b3cce,_0x4d342f);};}exports['register']=function(_0x566ac1){for(var _0x406111=0x0,_0x18613e=events[_0xd3eb('0x4')];_0x406111<_0x18613e;_0x406111++){var _0x3cef57=events[_0x406111];var _0x106e55=createListener(_0xd3eb('0x5')+_0x3cef57,_0x566ac1);ChatInternalMessageEvents['on'](_0x3cef57,_0x106e55);}};