Built motion from commit 55091a5c.|2.6.30
[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 _0x18ab=['emit','removeListener','register','length','chatInternalMessage:','./chatInternalMessage.events','save'];(function(_0x52097c,_0x42d6a2){var _0x180642=function(_0xeabc6b){while(--_0xeabc6b){_0x52097c['push'](_0x52097c['shift']());}};_0x180642(++_0x42d6a2);}(_0x18ab,0x178));var _0xb18a=function(_0x4fde02,_0x565a82){_0x4fde02=_0x4fde02-0x0;var _0x4c2581=_0x18ab[_0x4fde02];return _0x4c2581;};'use strict';var ChatInternalMessageEvents=require(_0xb18a('0x0'));var events=[_0xb18a('0x1'),'remove','update'];function createListener(_0x2792de,_0x3eb087){return function(_0x5cf955){_0x3eb087[_0xb18a('0x2')](_0x2792de,_0x5cf955);};}function removeListener(_0x212db2,_0x5c6320){return function(){ChatInternalMessageEvents[_0xb18a('0x3')](_0x212db2,_0x5c6320);};}exports[_0xb18a('0x4')]=function(_0x3720f9){for(var _0x2fd533=0x0,_0x55c826=events[_0xb18a('0x5')];_0x2fd533<_0x55c826;_0x2fd533++){var _0x4c8677=events[_0x2fd533];var _0x4c1b58=createListener(_0xb18a('0x6')+_0x4c8677,_0x3720f9);ChatInternalMessageEvents['on'](_0x4c8677,_0x4c1b58);}};