Built motion from commit (unavailable).|2.5.31
[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 _0xbe50=['remove','length','openchannelInteraction:','./openchannelInteraction.events','save'];(function(_0x4f15ae,_0xc46ff9){var _0x2d424c=function(_0x432bef){while(--_0x432bef){_0x4f15ae['push'](_0x4f15ae['shift']());}};_0x2d424c(++_0xc46ff9);}(_0xbe50,0x111));var _0x0be5=function(_0x2e6e35,_0x4486d5){_0x2e6e35=_0x2e6e35-0x0;var _0x227b27=_0xbe50[_0x2e6e35];return _0x227b27;};'use strict';var OpenchannelInteractionEvents=require(_0x0be5('0x0'));var events=[_0x0be5('0x1'),_0x0be5('0x2'),'update'];function createListener(_0x101048,_0x371857){return function(_0x2c5c7e){_0x371857['emit'](_0x101048,_0x2c5c7e);};}function removeListener(_0x5022b0,_0x5976ed){return function(){OpenchannelInteractionEvents['removeListener'](_0x5022b0,_0x5976ed);};}exports['register']=function(_0x2631d1){for(var _0x4148bc=0x0,_0x49ebe1=events[_0x0be5('0x3')];_0x4148bc<_0x49ebe1;_0x4148bc++){var _0x121fbb=events[_0x4148bc];var _0x3f4fff=createListener(_0x0be5('0x4')+_0x121fbb,_0x2631d1);OpenchannelInteractionEvents['on'](_0x121fbb,_0x3f4fff);}};