Built motion from commit ddca4d0d.|2.5.47
[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 _0x91a7=['removeListener','register','length','openchannelMessage:','./openchannelMessage.events','save','remove','emit'];(function(_0x5a95fa,_0x4a2fc9){var _0x1a61b8=function(_0x59f119){while(--_0x59f119){_0x5a95fa['push'](_0x5a95fa['shift']());}};_0x1a61b8(++_0x4a2fc9);}(_0x91a7,0x6c));var _0x791a=function(_0x2e695c,_0x31e8aa){_0x2e695c=_0x2e695c-0x0;var _0x51218e=_0x91a7[_0x2e695c];return _0x51218e;};'use strict';var OpenchannelMessageEvents=require(_0x791a('0x0'));var events=[_0x791a('0x1'),_0x791a('0x2'),'update'];function createListener(_0x1e3711,_0x49afe0){return function(_0x13684c){_0x49afe0[_0x791a('0x3')](_0x1e3711,_0x13684c);};}function removeListener(_0x399e19,_0x57e302){return function(){OpenchannelMessageEvents[_0x791a('0x4')](_0x399e19,_0x57e302);};}exports[_0x791a('0x5')]=function(_0x5c8238){for(var _0x1f6213=0x0,_0x5eea97=events[_0x791a('0x6')];_0x1f6213<_0x5eea97;_0x1f6213++){var _0x68f27c=events[_0x1f6213];var _0xe8ebd9=createListener(_0x791a('0x7')+_0x68f27c,_0x5c8238);OpenchannelMessageEvents['on'](_0x68f27c,_0xe8ebd9);}};