Built motion from commit ce9a7520.|2.5.39
[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 _0xfb51=['emit','removeListener','register','length','openchannelMessage:','./openchannelMessage.events','save','remove'];(function(_0x104f8f,_0x4e27b8){var _0x435198=function(_0x757d73){while(--_0x757d73){_0x104f8f['push'](_0x104f8f['shift']());}};_0x435198(++_0x4e27b8);}(_0xfb51,0x1b5));var _0x1fb5=function(_0x37b0da,_0x42982f){_0x37b0da=_0x37b0da-0x0;var _0x18c5b6=_0xfb51[_0x37b0da];return _0x18c5b6;};'use strict';var OpenchannelMessageEvents=require(_0x1fb5('0x0'));var events=[_0x1fb5('0x1'),_0x1fb5('0x2'),'update'];function createListener(_0x164ecb,_0x34fe7d){return function(_0x4ba3ff){_0x34fe7d[_0x1fb5('0x3')](_0x164ecb,_0x4ba3ff);};}function removeListener(_0x1a1fbf,_0x304186){return function(){OpenchannelMessageEvents[_0x1fb5('0x4')](_0x1a1fbf,_0x304186);};}exports[_0x1fb5('0x5')]=function(_0x4e4923){for(var _0x1a29f0=0x0,_0x4015ff=events[_0x1fb5('0x6')];_0x1a29f0<_0x4015ff;_0x1a29f0++){var _0x2d5716=events[_0x1a29f0];var _0x4a63e3=createListener(_0x1fb5('0x7')+_0x2d5716,_0x4e4923);OpenchannelMessageEvents['on'](_0x2d5716,_0x4a63e3);}};