Built motion from commit (unavailable).|2.5.4
[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 _0x24f0=['emit','removeListener','openchannelInteraction:','save','remove','update'];(function(_0x209941,_0x5c9988){var _0x1e8729=function(_0x51a9b8){while(--_0x51a9b8){_0x209941['push'](_0x209941['shift']());}};_0x1e8729(++_0x5c9988);}(_0x24f0,0xb7));var _0x024f=function(_0x2000b9,_0x13cecd){_0x2000b9=_0x2000b9-0x0;var _0x5ce7e9=_0x24f0[_0x2000b9];return _0x5ce7e9;};'use strict';var OpenchannelInteractionEvents=require('./openchannelInteraction.events');var events=[_0x024f('0x0'),_0x024f('0x1'),_0x024f('0x2')];function createListener(_0x1d7929,_0x504e8d){return function(_0x32bd9b){_0x504e8d[_0x024f('0x3')](_0x1d7929,_0x32bd9b);};}function removeListener(_0x3973e8,_0xa7aae){return function(){OpenchannelInteractionEvents[_0x024f('0x4')](_0x3973e8,_0xa7aae);};}exports['register']=function(_0x5a2883){for(var _0x14af22=0x0,_0x56566f=events['length'];_0x14af22<_0x56566f;_0x14af22++){var _0x34a35e=events[_0x14af22];var _0x5dbeeb=createListener(_0x024f('0x5')+_0x34a35e,_0x5a2883);OpenchannelInteractionEvents['on'](_0x34a35e,_0x5dbeeb);}};