Built motion from commit 52c8a02d.|2.6.29
[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 _0x08b1=['save','remove','update','emit','register','chatInternalMessage:','./chatInternalMessage.events'];(function(_0x2f7c07,_0x122d4c){var _0x4023d5=function(_0x130d48){while(--_0x130d48){_0x2f7c07['push'](_0x2f7c07['shift']());}};_0x4023d5(++_0x122d4c);}(_0x08b1,0x117));var _0x108b=function(_0x443174,_0x4d497b){_0x443174=_0x443174-0x0;var _0x28ee17=_0x08b1[_0x443174];return _0x28ee17;};'use strict';var ChatInternalMessageEvents=require(_0x108b('0x0'));var events=[_0x108b('0x1'),_0x108b('0x2'),_0x108b('0x3')];function createListener(_0x3a9783,_0x24752d){return function(_0x23116d){_0x24752d[_0x108b('0x4')](_0x3a9783,_0x23116d);};}function removeListener(_0x3ee750,_0xee42e9){return function(){ChatInternalMessageEvents['removeListener'](_0x3ee750,_0xee42e9);};}exports[_0x108b('0x5')]=function(_0x48d91a){for(var _0x4fcf05=0x0,_0x2abce4=events['length'];_0x4fcf05<_0x2abce4;_0x4fcf05++){var _0x2731f2=events[_0x4fcf05];var _0x54dca0=createListener(_0x108b('0x6')+_0x2731f2,_0x48d91a);ChatInternalMessageEvents['on'](_0x2731f2,_0x54dca0);}};