f9bcf78ba523ca6c72982f48240401cf09e718a5
[motion2.git] / server / api / faxQueue / faxQueue.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 _0xaf3c=['remove','update','emit','removeListener','register','length','faxQueue:','./faxQueue.events'];(function(_0x263a74,_0xc31414){var _0x2aa86c=function(_0x382896){while(--_0x382896){_0x263a74['push'](_0x263a74['shift']());}};_0x2aa86c(++_0xc31414);}(_0xaf3c,0x17f));var _0xcaf3=function(_0x341135,_0xd840df){_0x341135=_0x341135-0x0;var _0xb9a991=_0xaf3c[_0x341135];return _0xb9a991;};'use strict';var FaxQueueEvents=require(_0xcaf3('0x0'));var events=['save',_0xcaf3('0x1'),_0xcaf3('0x2')];function createListener(_0x5e1cda,_0x3845e7){return function(_0x45ee92){_0x3845e7[_0xcaf3('0x3')](_0x5e1cda,_0x45ee92);};}function removeListener(_0x4c236d,_0x2a0304){return function(){FaxQueueEvents[_0xcaf3('0x4')](_0x4c236d,_0x2a0304);};}exports[_0xcaf3('0x5')]=function(_0x5bc4dc){for(var _0x24ad35=0x0,_0xe33f8e=events[_0xcaf3('0x6')];_0x24ad35<_0xe33f8e;_0x24ad35++){var _0xd51c44=events[_0x24ad35];var _0x21c641=createListener(_0xcaf3('0x7')+_0xd51c44,_0x5bc4dc);FaxQueueEvents['on'](_0xd51c44,_0x21c641);}};