Built motion from commit 775e2a94.|2.6.3
[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 _0x00d1=['length','save','remove','emit','register'];(function(_0x2d2c16,_0x4e88b6){var _0x53f2fb=function(_0x6b6dac){while(--_0x6b6dac){_0x2d2c16['push'](_0x2d2c16['shift']());}};_0x53f2fb(++_0x4e88b6);}(_0x00d1,0x178));var _0x100d=function(_0x57b4ff,_0x3f3be0){_0x57b4ff=_0x57b4ff-0x0;var _0x28642e=_0x00d1[_0x57b4ff];return _0x28642e;};'use strict';var OpenchannelInteractionEvents=require('./openchannelInteraction.events');var events=[_0x100d('0x0'),_0x100d('0x1'),'update'];function createListener(_0x87a4d1,_0x53a479){return function(_0x1a581d){_0x53a479[_0x100d('0x2')](_0x87a4d1,_0x1a581d);};}function removeListener(_0x3bdec9,_0x1e3cda){return function(){OpenchannelInteractionEvents['removeListener'](_0x3bdec9,_0x1e3cda);};}exports[_0x100d('0x3')]=function(_0x1e946c){for(var _0x45444b=0x0,_0x362233=events[_0x100d('0x4')];_0x45444b<_0x362233;_0x45444b++){var _0x53ad04=events[_0x45444b];var _0xa50846=createListener('openchannelInteraction:'+_0x53ad04,_0x1e946c);OpenchannelInteractionEvents['on'](_0x53ad04,_0xa50846);}};