Built motion from commit (unavailable).|2.5.7
[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 _0x0b1f=['openchannelInteraction:','./openchannelInteraction.events','save','update','emit','register','length'];(function(_0x449acc,_0x416458){var _0x15d15d=function(_0x5626a0){while(--_0x5626a0){_0x449acc['push'](_0x449acc['shift']());}};_0x15d15d(++_0x416458);}(_0x0b1f,0x182));var _0xf0b1=function(_0x45bb8f,_0x37a24b){_0x45bb8f=_0x45bb8f-0x0;var _0x41bff0=_0x0b1f[_0x45bb8f];return _0x41bff0;};'use strict';var OpenchannelInteractionEvents=require(_0xf0b1('0x0'));var events=[_0xf0b1('0x1'),'remove',_0xf0b1('0x2')];function createListener(_0x123249,_0x2233fb){return function(_0x24289f){_0x2233fb[_0xf0b1('0x3')](_0x123249,_0x24289f);};}function removeListener(_0x134c77,_0x33b99b){return function(){OpenchannelInteractionEvents['removeListener'](_0x134c77,_0x33b99b);};}exports[_0xf0b1('0x4')]=function(_0x5522c1){for(var _0x441783=0x0,_0x3b54c1=events[_0xf0b1('0x5')];_0x441783<_0x3b54c1;_0x441783++){var _0x72e03c=events[_0x441783];var _0x59561d=createListener(_0xf0b1('0x6')+_0x72e03c,_0x5522c1);OpenchannelInteractionEvents['on'](_0x72e03c,_0x59561d);}};