Built motion from commit (unavailable).|2.5.14
[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 _0xd177=['emit','register','length','save','remove','update'];(function(_0x58ac9b,_0x35dc04){var _0x12a47d=function(_0x2af5ce){while(--_0x2af5ce){_0x58ac9b['push'](_0x58ac9b['shift']());}};_0x12a47d(++_0x35dc04);}(_0xd177,0xed));var _0x7d17=function(_0x503ac0,_0x2eafd5){_0x503ac0=_0x503ac0-0x0;var _0xd4d227=_0xd177[_0x503ac0];return _0xd4d227;};'use strict';var OpenchannelInteractionEvents=require('./openchannelInteraction.events');var events=[_0x7d17('0x0'),_0x7d17('0x1'),_0x7d17('0x2')];function createListener(_0x2eafa0,_0x1cc56c){return function(_0x1c248d){_0x1cc56c[_0x7d17('0x3')](_0x2eafa0,_0x1c248d);};}function removeListener(_0x54240f,_0x21cc5f){return function(){OpenchannelInteractionEvents['removeListener'](_0x54240f,_0x21cc5f);};}exports[_0x7d17('0x4')]=function(_0xbf1012){for(var _0x1f2f84=0x0,_0xd280e8=events[_0x7d17('0x5')];_0x1f2f84<_0xd280e8;_0x1f2f84++){var _0x2dfb97=events[_0x1f2f84];var _0x1b39f9=createListener('openchannelInteraction:'+_0x2dfb97,_0xbf1012);OpenchannelInteractionEvents['on'](_0x2dfb97,_0x1b39f9);}};