Built motion from commit (unavailable).|2.5.13
[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 _0xbb1c=['removeListener','register','length','faxInteraction:','./faxInteraction.events','save','remove','update','emit'];(function(_0x3a8027,_0x33c4a9){var _0x1fdef5=function(_0x36935e){while(--_0x36935e){_0x3a8027['push'](_0x3a8027['shift']());}};_0x1fdef5(++_0x33c4a9);}(_0xbb1c,0x199));var _0xcbb1=function(_0x258b24,_0x17394c){_0x258b24=_0x258b24-0x0;var _0x511a7=_0xbb1c[_0x258b24];return _0x511a7;};'use strict';var FaxInteractionEvents=require(_0xcbb1('0x0'));var events=[_0xcbb1('0x1'),_0xcbb1('0x2'),_0xcbb1('0x3')];function createListener(_0x39eebe,_0x4d6bb4){return function(_0x1c68f6){_0x4d6bb4[_0xcbb1('0x4')](_0x39eebe,_0x1c68f6);};}function removeListener(_0x510445,_0x386059){return function(){FaxInteractionEvents[_0xcbb1('0x5')](_0x510445,_0x386059);};}exports[_0xcbb1('0x6')]=function(_0x230d01){for(var _0x596cfe=0x0,_0x22d52f=events[_0xcbb1('0x7')];_0x596cfe<_0x22d52f;_0x596cfe++){var _0x281d4d=events[_0x596cfe];var _0x212c07=createListener(_0xcbb1('0x8')+_0x281d4d,_0x230d01);FaxInteractionEvents['on'](_0x281d4d,_0x212c07);}};