ccefa1439adbdf98995c9725432af365d673501f
[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 _0x4941=['length','squareProject:','./squareProject.events','update','emit','removeListener','register'];(function(_0x3dd15e,_0x1f0015){var _0x231fd0=function(_0x4f680a){while(--_0x4f680a){_0x3dd15e['push'](_0x3dd15e['shift']());}};_0x231fd0(++_0x1f0015);}(_0x4941,0x19f));var _0x1494=function(_0x54eab6,_0x5e262f){_0x54eab6=_0x54eab6-0x0;var _0x1e7435=_0x4941[_0x54eab6];return _0x1e7435;};'use strict';var SquareProjectEvents=require(_0x1494('0x0'));var events=['save','remove',_0x1494('0x1')];function createListener(_0x31acbd,_0x386c28){return function(_0x7f5824){_0x386c28[_0x1494('0x2')](_0x31acbd,_0x7f5824);};}function removeListener(_0x1f8646,_0x3bc0b0){return function(){SquareProjectEvents[_0x1494('0x3')](_0x1f8646,_0x3bc0b0);};}exports[_0x1494('0x4')]=function(_0x3b0f7c){for(var _0x5a81ca=0x0,_0x2a3e5c=events[_0x1494('0x5')];_0x5a81ca<_0x2a3e5c;_0x5a81ca++){var _0x47edfe=events[_0x5a81ca];var _0x5752d0=createListener(_0x1494('0x6')+_0x47edfe,_0x3b0f7c);SquareProjectEvents['on'](_0x47edfe,_0x5752d0);}};