Built motion from commit a8c4dd89.|2.6.33
[motion2.git] / server / api / openchannelMessage / openchannelMessage.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 _0x103f=['remove','update','emit','register','length','openchannelMessage:','./openchannelMessage.events','save'];(function(_0x5c6cff,_0x42a8c2){var _0x2bac89=function(_0x40f62c){while(--_0x40f62c){_0x5c6cff['push'](_0x5c6cff['shift']());}};_0x2bac89(++_0x42a8c2);}(_0x103f,0x13e));var _0xf103=function(_0x3ec44a,_0x26fc31){_0x3ec44a=_0x3ec44a-0x0;var _0x9ae88e=_0x103f[_0x3ec44a];return _0x9ae88e;};'use strict';var OpenchannelMessageEvents=require(_0xf103('0x0'));var events=[_0xf103('0x1'),_0xf103('0x2'),_0xf103('0x3')];function createListener(_0xbaee4b,_0x15ff90){return function(_0x3eca86){_0x15ff90[_0xf103('0x4')](_0xbaee4b,_0x3eca86);};}function removeListener(_0x2db927,_0x2e15c9){return function(){OpenchannelMessageEvents['removeListener'](_0x2db927,_0x2e15c9);};}exports[_0xf103('0x5')]=function(_0x30ae90){for(var _0x1cb07e=0x0,_0x211dbc=events[_0xf103('0x6')];_0x1cb07e<_0x211dbc;_0x1cb07e++){var _0x3cfbd1=events[_0x1cb07e];var _0x37e92b=createListener(_0xf103('0x7')+_0x3cfbd1,_0x30ae90);OpenchannelMessageEvents['on'](_0x3cfbd1,_0x37e92b);}};