Built motion from commit 9d1906d1.|2.5.40
[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 _0x43f8=['register','length','openchannelMessage:','./openchannelMessage.events','save','remove','emit','removeListener'];(function(_0x1ebe90,_0x5d29fc){var _0x447c82=function(_0x1c2646){while(--_0x1c2646){_0x1ebe90['push'](_0x1ebe90['shift']());}};_0x447c82(++_0x5d29fc);}(_0x43f8,0x1bb));var _0x843f=function(_0x4a4932,_0x3b6511){_0x4a4932=_0x4a4932-0x0;var _0x417c8d=_0x43f8[_0x4a4932];return _0x417c8d;};'use strict';var OpenchannelMessageEvents=require(_0x843f('0x0'));var events=[_0x843f('0x1'),_0x843f('0x2'),'update'];function createListener(_0x53ef8e,_0x876403){return function(_0x4bcd32){_0x876403[_0x843f('0x3')](_0x53ef8e,_0x4bcd32);};}function removeListener(_0x44dbb0,_0x5212bd){return function(){OpenchannelMessageEvents[_0x843f('0x4')](_0x44dbb0,_0x5212bd);};}exports[_0x843f('0x5')]=function(_0x3a38cd){for(var _0x4a00b5=0x0,_0x5d312b=events[_0x843f('0x6')];_0x4a00b5<_0x5d312b;_0x4a00b5++){var _0x1a6d65=events[_0x4a00b5];var _0x277417=createListener(_0x843f('0x7')+_0x1a6d65,_0x3a38cd);OpenchannelMessageEvents['on'](_0x1a6d65,_0x277417);}};