b1470174889c4b68e75121443c4ef302c94e1ab8
[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 _0xdff2=['length','remove','update','emit','removeListener','register'];(function(_0x227eae,_0x1221c3){var _0x18e26=function(_0x1986e2){while(--_0x1986e2){_0x227eae['push'](_0x227eae['shift']());}};_0x18e26(++_0x1221c3);}(_0xdff2,0x121));var _0x2dff=function(_0x18a768,_0x38876b){_0x18a768=_0x18a768-0x0;var _0x382515=_0xdff2[_0x18a768];return _0x382515;};'use strict';var OpenchannelInteractionEvents=require('./openchannelInteraction.events');var events=['save',_0x2dff('0x0'),_0x2dff('0x1')];function createListener(_0x5d03c1,_0x533b19){return function(_0x3c39e3){_0x533b19[_0x2dff('0x2')](_0x5d03c1,_0x3c39e3);};}function removeListener(_0x8f2466,_0x20efa6){return function(){OpenchannelInteractionEvents[_0x2dff('0x3')](_0x8f2466,_0x20efa6);};}exports[_0x2dff('0x4')]=function(_0x2bb603){for(var _0x3bd9f9=0x0,_0x166d9f=events[_0x2dff('0x5')];_0x3bd9f9<_0x166d9f;_0x3bd9f9++){var _0x553b5f=events[_0x3bd9f9];var _0x454b8f=createListener('openchannelInteraction:'+_0x553b5f,_0x2bb603);OpenchannelInteractionEvents['on'](_0x553b5f,_0x454b8f);}};