Built motion from commit (unavailable).|2.5.6
[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 _0xe151=['length','openchannelInteraction:','save','remove','emit'];(function(_0x368bba,_0x1f625b){var _0x409f8f=function(_0x463373){while(--_0x463373){_0x368bba['push'](_0x368bba['shift']());}};_0x409f8f(++_0x1f625b);}(_0xe151,0x19c));var _0x1e15=function(_0x51f7a3,_0x3f9940){_0x51f7a3=_0x51f7a3-0x0;var _0x174039=_0xe151[_0x51f7a3];return _0x174039;};'use strict';var OpenchannelInteractionEvents=require('./openchannelInteraction.events');var events=[_0x1e15('0x0'),_0x1e15('0x1'),'update'];function createListener(_0x21e32f,_0x5560f2){return function(_0x3e5b72){_0x5560f2[_0x1e15('0x2')](_0x21e32f,_0x3e5b72);};}function removeListener(_0x54ba30,_0x151fae){return function(){OpenchannelInteractionEvents['removeListener'](_0x54ba30,_0x151fae);};}exports['register']=function(_0x392dcf){for(var _0x491bf5=0x0,_0x2eff8b=events[_0x1e15('0x3')];_0x491bf5<_0x2eff8b;_0x491bf5++){var _0x4ef2f3=events[_0x491bf5];var _0x4f9f87=createListener(_0x1e15('0x4')+_0x4ef2f3,_0x392dcf);OpenchannelInteractionEvents['on'](_0x4ef2f3,_0x4f9f87);}};