Built motion from commit b0a9a629.|2.6.33
[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 _0x6e07=['./openchannelInteraction.events','save','remove','update','emit','register','length','openchannelInteraction:'];(function(_0x1b5aea,_0x3f04b7){var _0x15cfc6=function(_0x204e92){while(--_0x204e92){_0x1b5aea['push'](_0x1b5aea['shift']());}};_0x15cfc6(++_0x3f04b7);}(_0x6e07,0xb8));var _0x76e0=function(_0x3947c9,_0x4d6c97){_0x3947c9=_0x3947c9-0x0;var _0x2e7871=_0x6e07[_0x3947c9];return _0x2e7871;};'use strict';var OpenchannelInteractionEvents=require(_0x76e0('0x0'));var events=[_0x76e0('0x1'),_0x76e0('0x2'),_0x76e0('0x3')];function createListener(_0x3545fc,_0x4ea0d7){return function(_0x2744d1){_0x4ea0d7[_0x76e0('0x4')](_0x3545fc,_0x2744d1);};}function removeListener(_0x179a4d,_0x5c47e5){return function(){OpenchannelInteractionEvents['removeListener'](_0x179a4d,_0x5c47e5);};}exports[_0x76e0('0x5')]=function(_0x492fa6){for(var _0x1d5820=0x0,_0x2122e8=events[_0x76e0('0x6')];_0x1d5820<_0x2122e8;_0x1d5820++){var _0xbd4027=events[_0x1d5820];var _0x5c1f94=createListener(_0x76e0('0x7')+_0xbd4027,_0x492fa6);OpenchannelInteractionEvents['on'](_0xbd4027,_0x5c1f94);}};