Built motion from commit b0a9a629.|2.6.33
[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 _0x9ed5=['./faxAccount.events','save','remove','emit','removeListener','register','faxAccount:'];(function(_0x3dd15e,_0x1f0015){var _0x231fd0=function(_0x4f680a){while(--_0x4f680a){_0x3dd15e['push'](_0x3dd15e['shift']());}};_0x231fd0(++_0x1f0015);}(_0x9ed5,0x19d));var _0x59ed=function(_0x2763f2,_0x416af8){_0x2763f2=_0x2763f2-0x0;var _0x3ef471=_0x9ed5[_0x2763f2];return _0x3ef471;};'use strict';var FaxAccountEvents=require(_0x59ed('0x0'));var events=[_0x59ed('0x1'),_0x59ed('0x2'),'update'];function createListener(_0x4c7593,_0x30168b){return function(_0x18880c){_0x30168b[_0x59ed('0x3')](_0x4c7593,_0x18880c);};}function removeListener(_0x24f665,_0x361278){return function(){FaxAccountEvents[_0x59ed('0x4')](_0x24f665,_0x361278);};}exports[_0x59ed('0x5')]=function(_0x42c19c){for(var _0x57be8c=0x0,_0x909968=events['length'];_0x57be8c<_0x909968;_0x57be8c++){var _0x29ccec=events[_0x57be8c];var _0x32dfba=createListener(_0x59ed('0x6')+_0x29ccec,_0x42c19c);FaxAccountEvents['on'](_0x29ccec,_0x32dfba);}};