Built motion from commit (unavailable).|2.5.22
[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 _0x76cc=['openchannelInteraction:','save','remove','update','emit','removeListener','register','length'];(function(_0x502c7d,_0x2f1285){var _0x30b7ed=function(_0x2d92f3){while(--_0x2d92f3){_0x502c7d['push'](_0x502c7d['shift']());}};_0x30b7ed(++_0x2f1285);}(_0x76cc,0x1b9));var _0xc76c=function(_0x40e5f4,_0xeef05d){_0x40e5f4=_0x40e5f4-0x0;var _0x599025=_0x76cc[_0x40e5f4];return _0x599025;};'use strict';var OpenchannelInteractionEvents=require('./openchannelInteraction.events');var events=[_0xc76c('0x0'),_0xc76c('0x1'),_0xc76c('0x2')];function createListener(_0xd44a3a,_0x6d38e4){return function(_0x29bfd2){_0x6d38e4[_0xc76c('0x3')](_0xd44a3a,_0x29bfd2);};}function removeListener(_0x51625a,_0x1c725e){return function(){OpenchannelInteractionEvents[_0xc76c('0x4')](_0x51625a,_0x1c725e);};}exports[_0xc76c('0x5')]=function(_0xdf50ff){for(var _0x2e4a00=0x0,_0x42a3f5=events[_0xc76c('0x6')];_0x2e4a00<_0x42a3f5;_0x2e4a00++){var _0x4921b6=events[_0x2e4a00];var _0x1c0a16=createListener(_0xc76c('0x7')+_0x4921b6,_0xdf50ff);OpenchannelInteractionEvents['on'](_0x4921b6,_0x1c0a16);}};