Built motion from commit 85328c08.|2.5.50
[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 _0x958f=['save','remove','update','emit','removeListener','openchannelMessage:'];(function(_0x4cf98e,_0xba4b79){var _0x1623ac=function(_0x459bc0){while(--_0x459bc0){_0x4cf98e['push'](_0x4cf98e['shift']());}};_0x1623ac(++_0xba4b79);}(_0x958f,0x16e));var _0xf958=function(_0x4565bf,_0x5ad9d6){_0x4565bf=_0x4565bf-0x0;var _0x5610ba=_0x958f[_0x4565bf];return _0x5610ba;};'use strict';var OpenchannelMessageEvents=require('./openchannelMessage.events');var events=[_0xf958('0x0'),_0xf958('0x1'),_0xf958('0x2')];function createListener(_0x35758a,_0xbd09d9){return function(_0x4d8410){_0xbd09d9[_0xf958('0x3')](_0x35758a,_0x4d8410);};}function removeListener(_0x38b3f7,_0x5cf322){return function(){OpenchannelMessageEvents[_0xf958('0x4')](_0x38b3f7,_0x5cf322);};}exports['register']=function(_0x204612){for(var _0x1e0718=0x0,_0x7c19f4=events['length'];_0x1e0718<_0x7c19f4;_0x1e0718++){var _0x4f5a7a=events[_0x1e0718];var _0x4769ad=createListener(_0xf958('0x5')+_0x4f5a7a,_0x204612);OpenchannelMessageEvents['on'](_0x4f5a7a,_0x4769ad);}};