Built motion from commit da617fac.|2.6.6
[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 _0xf722=['register','length','openchannelMessage:','./openchannelMessage.events','save','remove','update','emit','removeListener'];(function(_0x1d1779,_0x284147){var _0x2377e9=function(_0x299f6f){while(--_0x299f6f){_0x1d1779['push'](_0x1d1779['shift']());}};_0x2377e9(++_0x284147);}(_0xf722,0x18f));var _0x2f72=function(_0x5b644e,_0x2e5e07){_0x5b644e=_0x5b644e-0x0;var _0x49c6bf=_0xf722[_0x5b644e];return _0x49c6bf;};'use strict';var OpenchannelMessageEvents=require(_0x2f72('0x0'));var events=[_0x2f72('0x1'),_0x2f72('0x2'),_0x2f72('0x3')];function createListener(_0x5e6b94,_0x23d53e){return function(_0x297070){_0x23d53e[_0x2f72('0x4')](_0x5e6b94,_0x297070);};}function removeListener(_0x418aed,_0x47d759){return function(){OpenchannelMessageEvents[_0x2f72('0x5')](_0x418aed,_0x47d759);};}exports[_0x2f72('0x6')]=function(_0x334168){for(var _0x537e3d=0x0,_0x4d4cf4=events[_0x2f72('0x7')];_0x537e3d<_0x4d4cf4;_0x537e3d++){var _0x3cb15e=events[_0x537e3d];var _0x1f3afb=createListener(_0x2f72('0x8')+_0x3cb15e,_0x334168);OpenchannelMessageEvents['on'](_0x3cb15e,_0x1f3afb);}};