Built motion from commit (unavailable).|2.5.23
[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 _0xebe8=['update','emit','removeListener','register','length','remove'];(function(_0x1e28f6,_0x447129){var _0x243b6a=function(_0x16dd8a){while(--_0x16dd8a){_0x1e28f6['push'](_0x1e28f6['shift']());}};_0x243b6a(++_0x447129);}(_0xebe8,0xa1));var _0x8ebe=function(_0x322c9f,_0xc20418){_0x322c9f=_0x322c9f-0x0;var _0x1d83f9=_0xebe8[_0x322c9f];return _0x1d83f9;};'use strict';var OpenchannelInteractionEvents=require('./openchannelInteraction.events');var events=['save',_0x8ebe('0x0'),_0x8ebe('0x1')];function createListener(_0x2c1728,_0x59fd21){return function(_0x35103a){_0x59fd21[_0x8ebe('0x2')](_0x2c1728,_0x35103a);};}function removeListener(_0x23f65b,_0x327ded){return function(){OpenchannelInteractionEvents[_0x8ebe('0x3')](_0x23f65b,_0x327ded);};}exports[_0x8ebe('0x4')]=function(_0xeb9242){for(var _0x41ad5f=0x0,_0x8a0145=events[_0x8ebe('0x5')];_0x41ad5f<_0x8a0145;_0x41ad5f++){var _0x141e66=events[_0x41ad5f];var _0x5824d1=createListener('openchannelInteraction:'+_0x141e66,_0xeb9242);OpenchannelInteractionEvents['on'](_0x141e66,_0x5824d1);}};