Built motion from commit (unavailable).|2.4.18
[motion2.git] / server / services / ami / rpc / trigger.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 _0xf8de=['data4','data5','data6','data7','../client','getTriggers','GetTrigger','channel','Condition','AllConditions','field','operator','AnyConditions','Action','action','data1','data2','data3'];(function(_0x307b9e,_0x428f96){var _0x196ea1=function(_0x280bae){while(--_0x280bae){_0x307b9e['push'](_0x307b9e['shift']());}};_0x196ea1(++_0x428f96);}(_0xf8de,0x94));var _0xef8d=function(_0x93ed01,_0x94be01){_0x93ed01=_0x93ed01-0x0;var _0x2cdc6c=_0xf8de[_0x93ed01];return _0x2cdc6c;};'use strict';var client=require(_0xef8d('0x0'));exports[_0xef8d('0x1')]=function(_0x42a8c8){return function(_0x148d10){return client['Request'](_0xef8d('0x2'),{'options':{'raw':![],'attributes':['id','name',_0xef8d('0x3'),'status'],'include':[{'model':_0xef8d('0x4'),'as':_0xef8d('0x5'),'attributes':['id',_0xef8d('0x6'),_0xef8d('0x7'),'value']},{'model':_0xef8d('0x4'),'as':_0xef8d('0x8'),'attributes':['id',_0xef8d('0x6'),_0xef8d('0x7'),'value']},{'model':_0xef8d('0x9'),'as':'Actions','attributes':['id',_0xef8d('0xa'),_0xef8d('0xb'),_0xef8d('0xc'),_0xef8d('0xd'),_0xef8d('0xe'),_0xef8d('0xf'),_0xef8d('0x10'),_0xef8d('0x11')]}]},'log':_0xef8d('0x2')});};};