Built motion from commit (unavailable).|2.5.11
[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 _0xae70=['./openchannelInteraction.events','remove','update','removeListener','register','openchannelInteraction:'];(function(_0x2f1a2f,_0x2ffa4b){var _0x260fbd=function(_0x5ca460){while(--_0x5ca460){_0x2f1a2f['push'](_0x2f1a2f['shift']());}};_0x260fbd(++_0x2ffa4b);}(_0xae70,0x90));var _0x0ae7=function(_0x4a3e96,_0x10f47a){_0x4a3e96=_0x4a3e96-0x0;var _0x3eda1e=_0xae70[_0x4a3e96];return _0x3eda1e;};'use strict';var OpenchannelInteractionEvents=require(_0x0ae7('0x0'));var events=['save',_0x0ae7('0x1'),_0x0ae7('0x2')];function createListener(_0x3ff99f,_0x2678d8){return function(_0x5f1736){_0x2678d8['emit'](_0x3ff99f,_0x5f1736);};}function removeListener(_0x236be0,_0x2e6de8){return function(){OpenchannelInteractionEvents[_0x0ae7('0x3')](_0x236be0,_0x2e6de8);};}exports[_0x0ae7('0x4')]=function(_0x54f1b2){for(var _0x45eadd=0x0,_0xfba345=events['length'];_0x45eadd<_0xfba345;_0x45eadd++){var _0x2a81f0=events[_0x45eadd];var _0x3bb23b=createListener(_0x0ae7('0x5')+_0x2a81f0,_0x54f1b2);OpenchannelInteractionEvents['on'](_0x2a81f0,_0x3bb23b);}};