9d3bef4ffdf025d56d5c1629a33d06332e7acb89
[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 _0xe6f7=['faxAccount:','save','remove','update','emit','register','length'];(function(_0x432682,_0x253044){var _0x463d05=function(_0xa73403){while(--_0xa73403){_0x432682['push'](_0x432682['shift']());}};_0x463d05(++_0x253044);}(_0xe6f7,0x127));var _0x7e6f=function(_0x3a16d4,_0x23ecda){_0x3a16d4=_0x3a16d4-0x0;var _0x31ea9c=_0xe6f7[_0x3a16d4];return _0x31ea9c;};'use strict';var FaxAccountEvents=require('./faxAccount.events');var events=[_0x7e6f('0x0'),_0x7e6f('0x1'),_0x7e6f('0x2')];function createListener(_0x5a5a95,_0x47ad65){return function(_0x1d267f){_0x47ad65[_0x7e6f('0x3')](_0x5a5a95,_0x1d267f);};}function removeListener(_0x576528,_0x3c0aa8){return function(){FaxAccountEvents['removeListener'](_0x576528,_0x3c0aa8);};}exports[_0x7e6f('0x4')]=function(_0x50cdc2){for(var _0x2a25d2=0x0,_0x3003bf=events[_0x7e6f('0x5')];_0x2a25d2<_0x3003bf;_0x2a25d2++){var _0x86bc42=events[_0x2a25d2];var _0x33435c=createListener(_0x7e6f('0x6')+_0x86bc42,_0x50cdc2);FaxAccountEvents['on'](_0x86bc42,_0x33435c);}};