Built motion from commit 753c950e.|2.5.42
[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 _0x0fc2=['update','removeListener','register'];(function(_0x419ad5,_0x1a8470){var _0x31fbd1=function(_0x15b7d8){while(--_0x15b7d8){_0x419ad5['push'](_0x419ad5['shift']());}};_0x31fbd1(++_0x1a8470);}(_0x0fc2,0x156));var _0x20fc=function(_0x13468d,_0x4bc728){_0x13468d=_0x13468d-0x0;var _0x44c2e9=_0x0fc2[_0x13468d];return _0x44c2e9;};'use strict';var SquareProjectEvents=require('./squareProject.events');var events=['save','remove',_0x20fc('0x0')];function createListener(_0x232432,_0x17e783){return function(_0x4699e3){_0x17e783['emit'](_0x232432,_0x4699e3);};}function removeListener(_0x2108a4,_0x229d94){return function(){SquareProjectEvents[_0x20fc('0x1')](_0x2108a4,_0x229d94);};}exports[_0x20fc('0x2')]=function(_0x48d39f){for(var _0x5260dd=0x0,_0x5347fa=events['length'];_0x5260dd<_0x5347fa;_0x5260dd++){var _0x2697f8=events[_0x5260dd];var _0x44aed0=createListener('squareProject:'+_0x2697f8,_0x48d39f);SquareProjectEvents['on'](_0x2697f8,_0x44aed0);}};