Built motion from commit da617fac.|2.6.6
[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 _0xf11f=['update','emit','removeListener','register','length','save','remove'];(function(_0x14f137,_0x3670a7){var _0x6169b6=function(_0x1f076e){while(--_0x1f076e){_0x14f137['push'](_0x14f137['shift']());}};_0x6169b6(++_0x3670a7);}(_0xf11f,0x1a9));var _0xff11=function(_0xf6e75d,_0xc70967){_0xf6e75d=_0xf6e75d-0x0;var _0x27514d=_0xf11f[_0xf6e75d];return _0x27514d;};'use strict';var ChatInternalMessageEvents=require('./chatInternalMessage.events');var events=[_0xff11('0x0'),_0xff11('0x1'),_0xff11('0x2')];function createListener(_0x396e19,_0x3af83a){return function(_0x370f84){_0x3af83a[_0xff11('0x3')](_0x396e19,_0x370f84);};}function removeListener(_0x325f44,_0x1234d8){return function(){ChatInternalMessageEvents[_0xff11('0x4')](_0x325f44,_0x1234d8);};}exports[_0xff11('0x5')]=function(_0x4a846c){for(var _0x4cc7e9=0x0,_0x124c42=events[_0xff11('0x6')];_0x4cc7e9<_0x124c42;_0x4cc7e9++){var _0x39d076=events[_0x4cc7e9];var _0x47609a=createListener('chatInternalMessage:'+_0x39d076,_0x4a846c);ChatInternalMessageEvents['on'](_0x39d076,_0x47609a);}};