99240167d2806911862d82c1070f5d3e39bf7125
[motion2.git] / server / api / faxAccount / faxAccount.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 _0x9f6c=['./faxAccount.events','save','remove','update','removeListener','register','length','faxAccount:'];(function(_0x11aed3,_0x1b6698){var _0x5a3570=function(_0x3d5eba){while(--_0x3d5eba){_0x11aed3['push'](_0x11aed3['shift']());}};_0x5a3570(++_0x1b6698);}(_0x9f6c,0x128));var _0xc9f6=function(_0x43e840,_0x197fd3){_0x43e840=_0x43e840-0x0;var _0x550115=_0x9f6c[_0x43e840];return _0x550115;};'use strict';var FaxAccountEvents=require(_0xc9f6('0x0'));var events=[_0xc9f6('0x1'),_0xc9f6('0x2'),_0xc9f6('0x3')];function createListener(_0xdc40f9,_0x1ab4bf){return function(_0x5227b9){_0x1ab4bf['emit'](_0xdc40f9,_0x5227b9);};}function removeListener(_0x1553d3,_0x1785e9){return function(){FaxAccountEvents[_0xc9f6('0x4')](_0x1553d3,_0x1785e9);};}exports[_0xc9f6('0x5')]=function(_0x2364e6){for(var _0x551e4b=0x0,_0x49eb85=events[_0xc9f6('0x6')];_0x551e4b<_0x49eb85;_0x551e4b++){var _0x16a63a=events[_0x551e4b];var _0x5d2849=createListener(_0xc9f6('0x7')+_0x16a63a,_0x2364e6);FaxAccountEvents['on'](_0x16a63a,_0x5d2849);}};