Built motion from commit (unavailable).|2.5.28
[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 _0xac72=['register','length','chatInternalMessage:','./chatInternalMessage.events','save','remove','emit','removeListener'];(function(_0x40ca06,_0xf492af){var _0x5acff6=function(_0x2ced90){while(--_0x2ced90){_0x40ca06['push'](_0x40ca06['shift']());}};_0x5acff6(++_0xf492af);}(_0xac72,0x1eb));var _0x2ac7=function(_0x1cc14f,_0x1943fd){_0x1cc14f=_0x1cc14f-0x0;var _0x25ea8d=_0xac72[_0x1cc14f];return _0x25ea8d;};'use strict';var ChatInternalMessageEvents=require(_0x2ac7('0x0'));var events=[_0x2ac7('0x1'),_0x2ac7('0x2'),'update'];function createListener(_0x164d24,_0x2620d6){return function(_0x6eda17){_0x2620d6[_0x2ac7('0x3')](_0x164d24,_0x6eda17);};}function removeListener(_0x238ae5,_0x38dc98){return function(){ChatInternalMessageEvents[_0x2ac7('0x4')](_0x238ae5,_0x38dc98);};}exports[_0x2ac7('0x5')]=function(_0x2c56b0){for(var _0x28add9=0x0,_0x4e11a4=events[_0x2ac7('0x6')];_0x28add9<_0x4e11a4;_0x28add9++){var _0xf836e2=events[_0x28add9];var _0x5055f1=createListener(_0x2ac7('0x7')+_0xf836e2,_0x2c56b0);ChatInternalMessageEvents['on'](_0xf836e2,_0x5055f1);}};