1dcae75dffa6af750bc83440377472c4330e727c
[motion2.git] / server / api / squareProject / squareProject.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 _0x87d5=['save','emit','removeListener','register'];(function(_0x3947c9,_0x4d6c97){var _0x2e7871=function(_0x1236cc){while(--_0x1236cc){_0x3947c9['push'](_0x3947c9['shift']());}};_0x2e7871(++_0x4d6c97);}(_0x87d5,0x74));var _0x587d=function(_0x46da61,_0x131db7){_0x46da61=_0x46da61-0x0;var _0x23f65a=_0x87d5[_0x46da61];return _0x23f65a;};'use strict';var SquareProjectEvents=require('./squareProject.events');var events=[_0x587d('0x0'),'remove','update'];function createListener(_0x49f3c5,_0x5e788b){return function(_0x515df0){_0x5e788b[_0x587d('0x1')](_0x49f3c5,_0x515df0);};}function removeListener(_0x3365ef,_0x10b501){return function(){SquareProjectEvents[_0x587d('0x2')](_0x3365ef,_0x10b501);};}exports[_0x587d('0x3')]=function(_0x2b3cb2){for(var _0x3e3ced=0x0,_0xeaa27c=events['length'];_0x3e3ced<_0xeaa27c;_0x3e3ced++){var _0x374887=events[_0x3e3ced];var _0x574306=createListener('squareProject:'+_0x374887,_0x2b3cb2);SquareProjectEvents['on'](_0x374887,_0x574306);}};