Built motion from commit 9d1906d1.|2.5.40
[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 _0xebd3=['./chatInternalMessage.events','save','remove','update','emit','register','length','chatInternalMessage:'];(function(_0x2b92ec,_0x18e0e3){var _0x12be46=function(_0x18118b){while(--_0x18118b){_0x2b92ec['push'](_0x2b92ec['shift']());}};_0x12be46(++_0x18e0e3);}(_0xebd3,0xe8));var _0x3ebd=function(_0x1fc18b,_0x13d27d){_0x1fc18b=_0x1fc18b-0x0;var _0x16a351=_0xebd3[_0x1fc18b];return _0x16a351;};'use strict';var ChatInternalMessageEvents=require(_0x3ebd('0x0'));var events=[_0x3ebd('0x1'),_0x3ebd('0x2'),_0x3ebd('0x3')];function createListener(_0x132f9b,_0x25a66c){return function(_0x24d01b){_0x25a66c[_0x3ebd('0x4')](_0x132f9b,_0x24d01b);};}function removeListener(_0x26da16,_0x41febe){return function(){ChatInternalMessageEvents['removeListener'](_0x26da16,_0x41febe);};}exports[_0x3ebd('0x5')]=function(_0x1d2877){for(var _0x241e24=0x0,_0x33633b=events[_0x3ebd('0x6')];_0x241e24<_0x33633b;_0x241e24++){var _0x386279=events[_0x241e24];var _0x5d54a7=createListener(_0x3ebd('0x7')+_0x386279,_0x1d2877);ChatInternalMessageEvents['on'](_0x386279,_0x5d54a7);}};