Built motion from commit (unavailable).|2.5.1
[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 _0x3025=['register','faxInteraction:','./faxInteraction.events','save','update'];(function(_0x1b2ff7,_0x12a034){var _0x31656a=function(_0x1165a5){while(--_0x1165a5){_0x1b2ff7['push'](_0x1b2ff7['shift']());}};_0x31656a(++_0x12a034);}(_0x3025,0x142));var _0x5302=function(_0x5758c6,_0xd0d9ee){_0x5758c6=_0x5758c6-0x0;var _0x2abc4c=_0x3025[_0x5758c6];return _0x2abc4c;};'use strict';var FaxInteractionEvents=require(_0x5302('0x0'));var events=[_0x5302('0x1'),'remove',_0x5302('0x2')];function createListener(_0x537831,_0x34d305){return function(_0x5e943a){_0x34d305['emit'](_0x537831,_0x5e943a);};}function removeListener(_0x176e0a,_0x20d963){return function(){FaxInteractionEvents['removeListener'](_0x176e0a,_0x20d963);};}exports[_0x5302('0x3')]=function(_0x3750c7){for(var _0x142340=0x0,_0x50b301=events['length'];_0x142340<_0x50b301;_0x142340++){var _0x20f145=events[_0x142340];var _0x4ed47d=createListener(_0x5302('0x4')+_0x20f145,_0x3750c7);FaxInteractionEvents['on'](_0x20f145,_0x4ed47d);}};