Built motion from commit 3e059bc2.|2.5.32
[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 _0x04d0=['length','./faxAccount.events','save','remove','update','emit','removeListener','register'];(function(_0x247bf9,_0x52f0c8){var _0x3b5049=function(_0x443e80){while(--_0x443e80){_0x247bf9['push'](_0x247bf9['shift']());}};_0x3b5049(++_0x52f0c8);}(_0x04d0,0x71));var _0x004d=function(_0x2abe0e,_0x25bd7d){_0x2abe0e=_0x2abe0e-0x0;var _0x2a10b2=_0x04d0[_0x2abe0e];return _0x2a10b2;};'use strict';var FaxAccountEvents=require(_0x004d('0x0'));var events=[_0x004d('0x1'),_0x004d('0x2'),_0x004d('0x3')];function createListener(_0x26ba5d,_0x5a0bc9){return function(_0x120590){_0x5a0bc9[_0x004d('0x4')](_0x26ba5d,_0x120590);};}function removeListener(_0x41a809,_0x2a08cc){return function(){FaxAccountEvents[_0x004d('0x5')](_0x41a809,_0x2a08cc);};}exports[_0x004d('0x6')]=function(_0x5f4203){for(var _0x3d834b=0x0,_0x49f216=events[_0x004d('0x7')];_0x3d834b<_0x49f216;_0x3d834b++){var _0x108b2e=events[_0x3d834b];var _0x5387b3=createListener('faxAccount:'+_0x108b2e,_0x5f4203);FaxAccountEvents['on'](_0x108b2e,_0x5387b3);}};