Built motion from commit (unavailable).|2.5.21
[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 _0x9244=['emit','register','length','openchannelInteraction:','./openchannelInteraction.events','save','update'];(function(_0x44d54c,_0x21c7ff){var _0x287de2=function(_0x531f21){while(--_0x531f21){_0x44d54c['push'](_0x44d54c['shift']());}};_0x287de2(++_0x21c7ff);}(_0x9244,0x13f));var _0x4924=function(_0x449095,_0x165c1f){_0x449095=_0x449095-0x0;var _0x3c1b13=_0x9244[_0x449095];return _0x3c1b13;};'use strict';var OpenchannelInteractionEvents=require(_0x4924('0x0'));var events=[_0x4924('0x1'),'remove',_0x4924('0x2')];function createListener(_0x24e33d,_0x419601){return function(_0x421d70){_0x419601[_0x4924('0x3')](_0x24e33d,_0x421d70);};}function removeListener(_0x237254,_0x442caa){return function(){OpenchannelInteractionEvents['removeListener'](_0x237254,_0x442caa);};}exports[_0x4924('0x4')]=function(_0x42e95a){for(var _0x4d1df2=0x0,_0x508a41=events[_0x4924('0x5')];_0x4d1df2<_0x508a41;_0x4d1df2++){var _0x1f1297=events[_0x4d1df2];var _0x5502d4=createListener(_0x4924('0x6')+_0x1f1297,_0x42e95a);OpenchannelInteractionEvents['on'](_0x1f1297,_0x5502d4);}};