Built motion from commit (unavailable).|2.3.4
[motion2.git] / server / api / faxInteraction / faxInteraction.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 _0xce66=['save','remove','update','emit','removeListener','register','length','faxInteraction:','./faxInteraction.events'];(function(_0x2db452,_0x1e2ff5){var _0x250db4=function(_0x3caf53){while(--_0x3caf53){_0x2db452['push'](_0x2db452['shift']());}};_0x250db4(++_0x1e2ff5);}(_0xce66,0x116));var _0x6ce6=function(_0x3c81b5,_0x3f5ed7){_0x3c81b5=_0x3c81b5-0x0;var _0x5888c4=_0xce66[_0x3c81b5];return _0x5888c4;};'use strict';var FaxInteractionEvents=require(_0x6ce6('0x0'));var events=[_0x6ce6('0x1'),_0x6ce6('0x2'),_0x6ce6('0x3')];function createListener(_0x2e7a1d,_0x3a8a9b){return function(_0x3abdde){_0x3a8a9b[_0x6ce6('0x4')](_0x2e7a1d,_0x3abdde);};}function removeListener(_0x4354c3,_0x2907a1){return function(){FaxInteractionEvents[_0x6ce6('0x5')](_0x4354c3,_0x2907a1);};}exports[_0x6ce6('0x6')]=function(_0x28c4c0){for(var _0xdd6c5a=0x0,_0x43b951=events[_0x6ce6('0x7')];_0xdd6c5a<_0x43b951;_0xdd6c5a++){var _0x419c2e=events[_0xdd6c5a];var _0x1d9cdb=createListener(_0x6ce6('0x8')+_0x419c2e,_0x28c4c0);FaxInteractionEvents['on'](_0x419c2e,_0x1d9cdb);}};