Built motion from commit c738b9ac.|2.6.25
[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 _0xeff0=['emit','removeListener','register','faxAccount:','./faxAccount.events','save','remove'];(function(_0x168ad0,_0x45e98b){var _0x3596fc=function(_0x388510){while(--_0x388510){_0x168ad0['push'](_0x168ad0['shift']());}};_0x3596fc(++_0x45e98b);}(_0xeff0,0xac));var _0x0eff=function(_0xfae23b,_0x2be4ba){_0xfae23b=_0xfae23b-0x0;var _0x200640=_0xeff0[_0xfae23b];return _0x200640;};'use strict';var FaxAccountEvents=require(_0x0eff('0x0'));var events=[_0x0eff('0x1'),_0x0eff('0x2'),'update'];function createListener(_0x4667d2,_0x23696b){return function(_0x4b25d7){_0x23696b[_0x0eff('0x3')](_0x4667d2,_0x4b25d7);};}function removeListener(_0x2074b9,_0x161ff0){return function(){FaxAccountEvents[_0x0eff('0x4')](_0x2074b9,_0x161ff0);};}exports[_0x0eff('0x5')]=function(_0x14902e){for(var _0x1be556=0x0,_0x4cba78=events['length'];_0x1be556<_0x4cba78;_0x1be556++){var _0x295cc3=events[_0x1be556];var _0x558d58=createListener(_0x0eff('0x6')+_0x295cc3,_0x14902e);FaxAccountEvents['on'](_0x295cc3,_0x558d58);}};