Built motion from commit 39adb707.|2.6.14
[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 _0xb17c=['update','emit','removeListener','register','length','chatInternalMessage:','./chatInternalMessage.events','save','remove'];(function(_0x59a6ef,_0x122314){var _0x3ba0b3=function(_0x4d6779){while(--_0x4d6779){_0x59a6ef['push'](_0x59a6ef['shift']());}};_0x3ba0b3(++_0x122314);}(_0xb17c,0x1e3));var _0xcb17=function(_0x45b034,_0x3a57dd){_0x45b034=_0x45b034-0x0;var _0x509cb0=_0xb17c[_0x45b034];return _0x509cb0;};'use strict';var ChatInternalMessageEvents=require(_0xcb17('0x0'));var events=[_0xcb17('0x1'),_0xcb17('0x2'),_0xcb17('0x3')];function createListener(_0x483df2,_0x1470b3){return function(_0x5cf565){_0x1470b3[_0xcb17('0x4')](_0x483df2,_0x5cf565);};}function removeListener(_0x304bf4,_0x3103a2){return function(){ChatInternalMessageEvents[_0xcb17('0x5')](_0x304bf4,_0x3103a2);};}exports[_0xcb17('0x6')]=function(_0x4841e2){for(var _0x5d882b=0x0,_0x1a2a6c=events[_0xcb17('0x7')];_0x5d882b<_0x1a2a6c;_0x5d882b++){var _0x7cfae6=events[_0x5d882b];var _0x5484d2=createListener(_0xcb17('0x8')+_0x7cfae6,_0x4841e2);ChatInternalMessageEvents['on'](_0x7cfae6,_0x5484d2);}};