Built motion from commit 43538d75.|2.5.35
[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 _0xc39a=['removeListener','register','length','faxAccount:','./faxAccount.events','save'];(function(_0x2e5ec0,_0x2cb8de){var _0x3e7610=function(_0x508b9e){while(--_0x508b9e){_0x2e5ec0['push'](_0x2e5ec0['shift']());}};_0x3e7610(++_0x2cb8de);}(_0xc39a,0xc4));var _0xac39=function(_0x4e93a9,_0x413f30){_0x4e93a9=_0x4e93a9-0x0;var _0x43013c=_0xc39a[_0x4e93a9];return _0x43013c;};'use strict';var FaxAccountEvents=require(_0xac39('0x0'));var events=[_0xac39('0x1'),'remove','update'];function createListener(_0x1516a7,_0x45ad89){return function(_0x21667e){_0x45ad89['emit'](_0x1516a7,_0x21667e);};}function removeListener(_0x54119a,_0x40f197){return function(){FaxAccountEvents[_0xac39('0x2')](_0x54119a,_0x40f197);};}exports[_0xac39('0x3')]=function(_0x43b687){for(var _0x264bf1=0x0,_0x58c170=events[_0xac39('0x4')];_0x264bf1<_0x58c170;_0x264bf1++){var _0x50b292=events[_0x264bf1];var _0x39e56d=createListener(_0xac39('0x5')+_0x50b292,_0x43b687);FaxAccountEvents['on'](_0x50b292,_0x39e56d);}};