Built motion from commit da617fac.|2.6.6
[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 _0x0be8=['emit','removeListener','length','./squareProject.events','update'];(function(_0x3acd04,_0x34fdcd){var _0x1af549=function(_0x79761b){while(--_0x79761b){_0x3acd04['push'](_0x3acd04['shift']());}};_0x1af549(++_0x34fdcd);}(_0x0be8,0x13e));var _0x80be=function(_0x2b1f44,_0x3fd92f){_0x2b1f44=_0x2b1f44-0x0;var _0x370755=_0x0be8[_0x2b1f44];return _0x370755;};'use strict';var SquareProjectEvents=require(_0x80be('0x0'));var events=['save','remove',_0x80be('0x1')];function createListener(_0x46876d,_0x538da1){return function(_0x5242a8){_0x538da1[_0x80be('0x2')](_0x46876d,_0x5242a8);};}function removeListener(_0x2cb9e1,_0xa06e15){return function(){SquareProjectEvents[_0x80be('0x3')](_0x2cb9e1,_0xa06e15);};}exports['register']=function(_0x3cc9fb){for(var _0x32a47f=0x0,_0x211198=events[_0x80be('0x4')];_0x32a47f<_0x211198;_0x32a47f++){var _0xb254f0=events[_0x32a47f];var _0x18cc3=createListener('squareProject:'+_0xb254f0,_0x3cc9fb);SquareProjectEvents['on'](_0xb254f0,_0x18cc3);}};