Built motion from commit (unavailable).|2.2.4
[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 _0x859c=['remove','update','emit','removeListener','register','length','chatInternalMessage:','./chatInternalMessage.events'];(function(_0x5c05ab,_0x4da7c0){var _0x429b3b=function(_0xdbc0be){while(--_0xdbc0be){_0x5c05ab['push'](_0x5c05ab['shift']());}};_0x429b3b(++_0x4da7c0);}(_0x859c,0x1c7));var _0xc859=function(_0x4e31b4,_0x319bb5){_0x4e31b4=_0x4e31b4-0x0;var _0x57b16e=_0x859c[_0x4e31b4];return _0x57b16e;};'use strict';var ChatInternalMessageEvents=require(_0xc859('0x0'));var events=['save',_0xc859('0x1'),_0xc859('0x2')];function createListener(_0x28cfba,_0x56dfa1){return function(_0x4de7dd){_0x56dfa1[_0xc859('0x3')](_0x28cfba,_0x4de7dd);};}function removeListener(_0x4e5977,_0x34ded1){return function(){ChatInternalMessageEvents[_0xc859('0x4')](_0x4e5977,_0x34ded1);};}exports[_0xc859('0x5')]=function(_0x599c1c){for(var _0x56391a=0x0,_0x10930d=events[_0xc859('0x6')];_0x56391a<_0x10930d;_0x56391a++){var _0x535b12=events[_0x56391a];var _0x5e74de=createListener(_0xc859('0x7')+_0x535b12,_0x599c1c);ChatInternalMessageEvents['on'](_0x535b12,_0x5e74de);}};