Built motion from commit (unavailable).|2.4.2
[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 _0x4ed3=['removeListener','faxAccount:','./faxAccount.events','remove','emit'];(function(_0x3dd15e,_0x1f0015){var _0x231fd0=function(_0x4f680a){while(--_0x4f680a){_0x3dd15e['push'](_0x3dd15e['shift']());}};_0x231fd0(++_0x1f0015);}(_0x4ed3,0xbb));var _0x34ed=function(_0x20620f,_0x37c815){_0x20620f=_0x20620f-0x0;var _0x593a2f=_0x4ed3[_0x20620f];return _0x593a2f;};'use strict';var FaxAccountEvents=require(_0x34ed('0x0'));var events=['save',_0x34ed('0x1'),'update'];function createListener(_0x4edee9,_0x17f32c){return function(_0x1ddaaa){_0x17f32c[_0x34ed('0x2')](_0x4edee9,_0x1ddaaa);};}function removeListener(_0x3d4a31,_0x11294b){return function(){FaxAccountEvents[_0x34ed('0x3')](_0x3d4a31,_0x11294b);};}exports['register']=function(_0x4232dd){for(var _0x50ecef=0x0,_0x2986c8=events['length'];_0x50ecef<_0x2986c8;_0x50ecef++){var _0x44a0ac=events[_0x50ecef];var _0x16c0f7=createListener(_0x34ed('0x4')+_0x44a0ac,_0x4232dd);FaxAccountEvents['on'](_0x44a0ac,_0x16c0f7);}};