Built motion from commit 6362bb75.|2.6.13
[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 _0x66ef=['./faxAccount.events','emit','removeListener','faxAccount:'];(function(_0x281890,_0x30b02e){var _0x4e2120=function(_0x3fb827){while(--_0x3fb827){_0x281890['push'](_0x281890['shift']());}};_0x4e2120(++_0x30b02e);}(_0x66ef,0x84));var _0xf66e=function(_0x3d5e7a,_0x1a8bd9){_0x3d5e7a=_0x3d5e7a-0x0;var _0x4569ec=_0x66ef[_0x3d5e7a];return _0x4569ec;};'use strict';var FaxAccountEvents=require(_0xf66e('0x0'));var events=['save','remove','update'];function createListener(_0x90211d,_0x161121){return function(_0x1fbd12){_0x161121[_0xf66e('0x1')](_0x90211d,_0x1fbd12);};}function removeListener(_0x292e89,_0x3b7830){return function(){FaxAccountEvents[_0xf66e('0x2')](_0x292e89,_0x3b7830);};}exports['register']=function(_0x516968){for(var _0xbdda1c=0x0,_0x168822=events['length'];_0xbdda1c<_0x168822;_0xbdda1c++){var _0xcbd995=events[_0xbdda1c];var _0x3d965f=createListener(_0xf66e('0x3')+_0xcbd995,_0x516968);FaxAccountEvents['on'](_0xcbd995,_0x3d965f);}};