Built motion from commit (unavailable).|2.5.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 _0xf7f3=['remove','update','register','./chatInternalMessage.events','save'];(function(_0x7b9b07,_0x1d7476){var _0xb7d587=function(_0xe68794){while(--_0xe68794){_0x7b9b07['push'](_0x7b9b07['shift']());}};_0xb7d587(++_0x1d7476);}(_0xf7f3,0x12a));var _0x3f7f=function(_0x44bf93,_0x4440f9){_0x44bf93=_0x44bf93-0x0;var _0x4fa1e1=_0xf7f3[_0x44bf93];return _0x4fa1e1;};'use strict';var ChatInternalMessageEvents=require(_0x3f7f('0x0'));var events=[_0x3f7f('0x1'),_0x3f7f('0x2'),_0x3f7f('0x3')];function createListener(_0x211587,_0x26a826){return function(_0x4b3ff7){_0x26a826['emit'](_0x211587,_0x4b3ff7);};}function removeListener(_0x5e4ff,_0x378c5f){return function(){ChatInternalMessageEvents['removeListener'](_0x5e4ff,_0x378c5f);};}exports[_0x3f7f('0x4')]=function(_0x4876e8){for(var _0x2198f7=0x0,_0x57b834=events['length'];_0x2198f7<_0x57b834;_0x2198f7++){var _0x5cac86=events[_0x2198f7];var _0x4cabff=createListener('chatInternalMessage:'+_0x5cac86,_0x4876e8);ChatInternalMessageEvents['on'](_0x5cac86,_0x4cabff);}};