Built motion from commit f7863d46.|2.5.41
[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 _0xc34b=['remove','update','emit','removeListener','length','faxAccount:','./faxAccount.events','save'];(function(_0x4cf98e,_0xba4b79){var _0x1623ac=function(_0x459bc0){while(--_0x459bc0){_0x4cf98e['push'](_0x4cf98e['shift']());}};_0x1623ac(++_0xba4b79);}(_0xc34b,0x156));var _0xbc34=function(_0x2bc3f4,_0x470b26){_0x2bc3f4=_0x2bc3f4-0x0;var _0x14ac53=_0xc34b[_0x2bc3f4];return _0x14ac53;};'use strict';var FaxAccountEvents=require(_0xbc34('0x0'));var events=[_0xbc34('0x1'),_0xbc34('0x2'),_0xbc34('0x3')];function createListener(_0x1bdde3,_0x58bb58){return function(_0x524ff2){_0x58bb58[_0xbc34('0x4')](_0x1bdde3,_0x524ff2);};}function removeListener(_0x160b45,_0x47ab04){return function(){FaxAccountEvents[_0xbc34('0x5')](_0x160b45,_0x47ab04);};}exports['register']=function(_0xd00bce){for(var _0x37eabb=0x0,_0x5b42c8=events[_0xbc34('0x6')];_0x37eabb<_0x5b42c8;_0x37eabb++){var _0x5cdd3f=events[_0x37eabb];var _0xf56a40=createListener(_0xbc34('0x7')+_0x5cdd3f,_0xd00bce);FaxAccountEvents['on'](_0x5cdd3f,_0xf56a40);}};