Built motion from commit (unavailable).|2.5.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 _0x25a3=['chatInternalMessage:','./chatInternalMessage.events','save','remove','emit','removeListener','register','length'];(function(_0x502ca3,_0x36be36){var _0x27f42c=function(_0x1e3045){while(--_0x1e3045){_0x502ca3['push'](_0x502ca3['shift']());}};_0x27f42c(++_0x36be36);}(_0x25a3,0x121));var _0x325a=function(_0x3707c9,_0x2b8b34){_0x3707c9=_0x3707c9-0x0;var _0x491a9c=_0x25a3[_0x3707c9];return _0x491a9c;};'use strict';var ChatInternalMessageEvents=require(_0x325a('0x0'));var events=[_0x325a('0x1'),_0x325a('0x2'),'update'];function createListener(_0x81800a,_0x50e9ba){return function(_0x46df7b){_0x50e9ba[_0x325a('0x3')](_0x81800a,_0x46df7b);};}function removeListener(_0x1f6e3d,_0x5d829e){return function(){ChatInternalMessageEvents[_0x325a('0x4')](_0x1f6e3d,_0x5d829e);};}exports[_0x325a('0x5')]=function(_0x272122){for(var _0x56e8fb=0x0,_0x533867=events[_0x325a('0x6')];_0x56e8fb<_0x533867;_0x56e8fb++){var _0x209f5e=events[_0x56e8fb];var _0x43bd79=createListener(_0x325a('0x7')+_0x209f5e,_0x272122);ChatInternalMessageEvents['on'](_0x209f5e,_0x43bd79);}};