Built motion from commit 9e1399f3.|2.5.37
[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 _0xcec8=['update','removeListener','length','openchannelMessage:','save','remove'];(function(_0x499383,_0x3c8539){var _0x226f60=function(_0x3de644){while(--_0x3de644){_0x499383['push'](_0x499383['shift']());}};_0x226f60(++_0x3c8539);}(_0xcec8,0x10c));var _0x8cec=function(_0x506d83,_0x1899e9){_0x506d83=_0x506d83-0x0;var _0x335e8b=_0xcec8[_0x506d83];return _0x335e8b;};'use strict';var OpenchannelMessageEvents=require('./openchannelMessage.events');var events=[_0x8cec('0x0'),_0x8cec('0x1'),_0x8cec('0x2')];function createListener(_0x225ccc,_0x5c8916){return function(_0x424650){_0x5c8916['emit'](_0x225ccc,_0x424650);};}function removeListener(_0x3063a5,_0x18dcea){return function(){OpenchannelMessageEvents[_0x8cec('0x3')](_0x3063a5,_0x18dcea);};}exports['register']=function(_0x21f154){for(var _0xc37d1a=0x0,_0x4f45b5=events[_0x8cec('0x4')];_0xc37d1a<_0x4f45b5;_0xc37d1a++){var _0x380d3e=events[_0xc37d1a];var _0x5083cb=createListener(_0x8cec('0x5')+_0x380d3e,_0x21f154);OpenchannelMessageEvents['on'](_0x380d3e,_0x5083cb);}};