Built motion from commit 9e1399f3.|2.5.37
[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 _0x81d0=['register','length','openchannelInteraction:','./openchannelInteraction.events','save','update','removeListener'];(function(_0x3ab51d,_0x2fa01d){var _0x29a04e=function(_0x7807b0){while(--_0x7807b0){_0x3ab51d['push'](_0x3ab51d['shift']());}};_0x29a04e(++_0x2fa01d);}(_0x81d0,0x1d1));var _0x081d=function(_0x3dd15e,_0x1f0015){_0x3dd15e=_0x3dd15e-0x0;var _0x231fd0=_0x81d0[_0x3dd15e];return _0x231fd0;};'use strict';var OpenchannelInteractionEvents=require(_0x081d('0x0'));var events=[_0x081d('0x1'),'remove',_0x081d('0x2')];function createListener(_0x499f78,_0x2b8101){return function(_0x246db0){_0x2b8101['emit'](_0x499f78,_0x246db0);};}function removeListener(_0xd22ce3,_0x707e7a){return function(){OpenchannelInteractionEvents[_0x081d('0x3')](_0xd22ce3,_0x707e7a);};}exports[_0x081d('0x4')]=function(_0x85e8b3){for(var _0x4dbebc=0x0,_0x451843=events[_0x081d('0x5')];_0x4dbebc<_0x451843;_0x4dbebc++){var _0x54fe86=events[_0x4dbebc];var _0x520b26=createListener(_0x081d('0x6')+_0x54fe86,_0x85e8b3);OpenchannelInteractionEvents['on'](_0x54fe86,_0x520b26);}};