Built motion from commit 167bccf5.|2.6.7
[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 _0x712f=['emit','removeListener','register','length','chatInternalMessage:','./chatInternalMessage.events','save','remove','update'];(function(_0x1e8ce2,_0x46aee1){var _0x41681b=function(_0x5d78f3){while(--_0x5d78f3){_0x1e8ce2['push'](_0x1e8ce2['shift']());}};_0x41681b(++_0x46aee1);}(_0x712f,0x1f4));var _0xf712=function(_0x5b9fe0,_0x3aea14){_0x5b9fe0=_0x5b9fe0-0x0;var _0x57a762=_0x712f[_0x5b9fe0];return _0x57a762;};'use strict';var ChatInternalMessageEvents=require(_0xf712('0x0'));var events=[_0xf712('0x1'),_0xf712('0x2'),_0xf712('0x3')];function createListener(_0x3e534c,_0x1b7698){return function(_0x2decef){_0x1b7698[_0xf712('0x4')](_0x3e534c,_0x2decef);};}function removeListener(_0x546388,_0x2180b6){return function(){ChatInternalMessageEvents[_0xf712('0x5')](_0x546388,_0x2180b6);};}exports[_0xf712('0x6')]=function(_0xc72bfe){for(var _0x5bf2ef=0x0,_0x10f9e9=events[_0xf712('0x7')];_0x5bf2ef<_0x10f9e9;_0x5bf2ef++){var _0x1906e1=events[_0x5bf2ef];var _0x597798=createListener(_0xf712('0x8')+_0x1906e1,_0xc72bfe);ChatInternalMessageEvents['on'](_0x1906e1,_0x597798);}};