cada783ec338ac58d0cc934f8ba940c5c2aaa888
[motion2.git] / server / api / openchannelInteraction / openchannelInteraction.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 _0xfc96=['./openchannelInteraction.events','save','remove','update','emit','removeListener','length','openchannelInteraction:'];(function(_0x152449,_0x49f41d){var _0x5b58b2=function(_0x226c30){while(--_0x226c30){_0x152449['push'](_0x152449['shift']());}};_0x5b58b2(++_0x49f41d);}(_0xfc96,0x70));var _0x6fc9=function(_0x4d5ee5,_0x33a013){_0x4d5ee5=_0x4d5ee5-0x0;var _0x1c3ce4=_0xfc96[_0x4d5ee5];return _0x1c3ce4;};'use strict';var OpenchannelInteractionEvents=require(_0x6fc9('0x0'));var events=[_0x6fc9('0x1'),_0x6fc9('0x2'),_0x6fc9('0x3')];function createListener(_0x1d6191,_0x362d30){return function(_0x1cc993){_0x362d30[_0x6fc9('0x4')](_0x1d6191,_0x1cc993);};}function removeListener(_0x283a4e,_0x3d9594){return function(){OpenchannelInteractionEvents[_0x6fc9('0x5')](_0x283a4e,_0x3d9594);};}exports['register']=function(_0x550bc7){for(var _0x33260c=0x0,_0x276c2a=events[_0x6fc9('0x6')];_0x33260c<_0x276c2a;_0x33260c++){var _0x450f2f=events[_0x33260c];var _0x24c939=createListener(_0x6fc9('0x7')+_0x450f2f,_0x550bc7);OpenchannelInteractionEvents['on'](_0x450f2f,_0x24c939);}};