Built motion from commit (unavailable).|2.5.24
[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 _0x9f3e=['removeListener','register','length','chatInternalMessage:','./chatInternalMessage.events','save','remove','update'];(function(_0x327a4d,_0x5b11d2){var _0x3b5b57=function(_0xf147ee){while(--_0xf147ee){_0x327a4d['push'](_0x327a4d['shift']());}};_0x3b5b57(++_0x5b11d2);}(_0x9f3e,0x1c4));var _0xe9f3=function(_0x5e633f,_0x23fecc){_0x5e633f=_0x5e633f-0x0;var _0x57246f=_0x9f3e[_0x5e633f];return _0x57246f;};'use strict';var ChatInternalMessageEvents=require(_0xe9f3('0x0'));var events=[_0xe9f3('0x1'),_0xe9f3('0x2'),_0xe9f3('0x3')];function createListener(_0xf82db9,_0x59bb34){return function(_0x597538){_0x59bb34['emit'](_0xf82db9,_0x597538);};}function removeListener(_0x1ea33c,_0x4bc414){return function(){ChatInternalMessageEvents[_0xe9f3('0x4')](_0x1ea33c,_0x4bc414);};}exports[_0xe9f3('0x5')]=function(_0x46f926){for(var _0x3693ef=0x0,_0x46e25d=events[_0xe9f3('0x6')];_0x3693ef<_0x46e25d;_0x3693ef++){var _0x407123=events[_0x3693ef];var _0x4014b1=createListener(_0xe9f3('0x7')+_0x407123,_0x46f926);ChatInternalMessageEvents['on'](_0x407123,_0x4014b1);}};