Built motion from commit da617fac.|2.6.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 _0x48d9=['removeListener','register','openchannelInteraction:','save','remove','update','emit'];(function(_0x21b40f,_0x2ebb33){var _0x94b34a=function(_0x5baab4){while(--_0x5baab4){_0x21b40f['push'](_0x21b40f['shift']());}};_0x94b34a(++_0x2ebb33);}(_0x48d9,0x8f));var _0x948d=function(_0x87413c,_0x34c62b){_0x87413c=_0x87413c-0x0;var _0x4018e2=_0x48d9[_0x87413c];return _0x4018e2;};'use strict';var OpenchannelInteractionEvents=require('./openchannelInteraction.events');var events=[_0x948d('0x0'),_0x948d('0x1'),_0x948d('0x2')];function createListener(_0x5dfed0,_0x8df431){return function(_0x293842){_0x8df431[_0x948d('0x3')](_0x5dfed0,_0x293842);};}function removeListener(_0x904c60,_0x5d7a9e){return function(){OpenchannelInteractionEvents[_0x948d('0x4')](_0x904c60,_0x5d7a9e);};}exports[_0x948d('0x5')]=function(_0x5a5f67){for(var _0x7bd82c=0x0,_0x40be29=events['length'];_0x7bd82c<_0x40be29;_0x7bd82c++){var _0x8e66df=events[_0x7bd82c];var _0x531016=createListener(_0x948d('0x6')+_0x8e66df,_0x5a5f67);OpenchannelInteractionEvents['on'](_0x8e66df,_0x531016);}};