Built motion from commit 9d7072cc.|2.5.39
[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 _0xc8df=['save','emit','register','faxAccount:','./faxAccount.events'];(function(_0x42c31a,_0x27dc76){var _0x12e7be=function(_0x36b760){while(--_0x36b760){_0x42c31a['push'](_0x42c31a['shift']());}};_0x12e7be(++_0x27dc76);}(_0xc8df,0x9f));var _0xfc8d=function(_0x502c7d,_0x2f1285){_0x502c7d=_0x502c7d-0x0;var _0x30b7ed=_0xc8df[_0x502c7d];return _0x30b7ed;};'use strict';var FaxAccountEvents=require(_0xfc8d('0x0'));var events=[_0xfc8d('0x1'),'remove','update'];function createListener(_0x4f960a,_0x120ff8){return function(_0x59c7c0){_0x120ff8[_0xfc8d('0x2')](_0x4f960a,_0x59c7c0);};}function removeListener(_0x5c9b9e,_0x5629c8){return function(){FaxAccountEvents['removeListener'](_0x5c9b9e,_0x5629c8);};}exports[_0xfc8d('0x3')]=function(_0x47f5f0){for(var _0x4548f2=0x0,_0x52cd8f=events['length'];_0x4548f2<_0x52cd8f;_0x4548f2++){var _0x85dced=events[_0x4548f2];var _0x294bd0=createListener(_0xfc8d('0x4')+_0x85dced,_0x47f5f0);FaxAccountEvents['on'](_0x85dced,_0x294bd0);}};