Built motion from commit 3c2ce842.|2.6.31
[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 _0xe2a1=['register','length','chatInternalMessage:','save','update','emit','removeListener'];(function(_0x2a979d,_0x583622){var _0x45e0a0=function(_0x4e7a17){while(--_0x4e7a17){_0x2a979d['push'](_0x2a979d['shift']());}};_0x45e0a0(++_0x583622);}(_0xe2a1,0x176));var _0x1e2a=function(_0x3f8870,_0x44ac68){_0x3f8870=_0x3f8870-0x0;var _0x1e4c60=_0xe2a1[_0x3f8870];return _0x1e4c60;};'use strict';var ChatInternalMessageEvents=require('./chatInternalMessage.events');var events=[_0x1e2a('0x0'),'remove',_0x1e2a('0x1')];function createListener(_0x20271d,_0x589e50){return function(_0x5d2632){_0x589e50[_0x1e2a('0x2')](_0x20271d,_0x5d2632);};}function removeListener(_0x49d1ca,_0x1058df){return function(){ChatInternalMessageEvents[_0x1e2a('0x3')](_0x49d1ca,_0x1058df);};}exports[_0x1e2a('0x4')]=function(_0x1955be){for(var _0x218bb5=0x0,_0x260961=events[_0x1e2a('0x5')];_0x218bb5<_0x260961;_0x218bb5++){var _0x4c99d8=events[_0x218bb5];var _0x4f0df9=createListener(_0x1e2a('0x6')+_0x4c99d8,_0x1955be);ChatInternalMessageEvents['on'](_0x4c99d8,_0x4f0df9);}};