Built motion from commit (unavailable).|2.5.31
[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 _0x3b76=['register','save','emit'];(function(_0xef78ee,_0x2a97dd){var _0x2dca92=function(_0x1f2ebb){while(--_0x1f2ebb){_0xef78ee['push'](_0xef78ee['shift']());}};_0x2dca92(++_0x2a97dd);}(_0x3b76,0x1ba));var _0x63b7=function(_0xd2794a,_0x130fe){_0xd2794a=_0xd2794a-0x0;var _0x2efda5=_0x3b76[_0xd2794a];return _0x2efda5;};'use strict';var OpenchannelInteractionEvents=require('./openchannelInteraction.events');var events=[_0x63b7('0x0'),'remove','update'];function createListener(_0x10366e,_0xfc116d){return function(_0x47ee85){_0xfc116d[_0x63b7('0x1')](_0x10366e,_0x47ee85);};}function removeListener(_0x402f0c,_0x23b984){return function(){OpenchannelInteractionEvents['removeListener'](_0x402f0c,_0x23b984);};}exports[_0x63b7('0x2')]=function(_0x5561e9){for(var _0x29e251=0x0,_0x19bc18=events['length'];_0x29e251<_0x19bc18;_0x29e251++){var _0x117c61=events[_0x29e251];var _0x359666=createListener('openchannelInteraction:'+_0x117c61,_0x5561e9);OpenchannelInteractionEvents['on'](_0x117c61,_0x359666);}};