Built motion from commit (unavailable).|2.5.28
[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 _0xe022=['Action','Actions','action','data1','data2','data3','data5','data7','../client','getTriggers','GetTrigger','name','channel','status','Condition','AllConditions','field','operator','AnyConditions'];(function(_0x4c67a7,_0x3e3a5c){var _0x15028f=function(_0x1ddb89){while(--_0x1ddb89){_0x4c67a7['push'](_0x4c67a7['shift']());}};_0x15028f(++_0x3e3a5c);}(_0xe022,0xff));var _0x2e02=function(_0x21a866,_0x3aafc2){_0x21a866=_0x21a866-0x0;var _0x33b919=_0xe022[_0x21a866];return _0x33b919;};'use strict';var client=require(_0x2e02('0x0'));exports[_0x2e02('0x1')]=function(_0x5dc479){return function(_0x11b677){return client['Request'](_0x2e02('0x2'),{'options':{'raw':![],'attributes':['id',_0x2e02('0x3'),_0x2e02('0x4'),_0x2e02('0x5')],'include':[{'model':_0x2e02('0x6'),'as':_0x2e02('0x7'),'attributes':['id',_0x2e02('0x8'),_0x2e02('0x9'),'value']},{'model':'Condition','as':_0x2e02('0xa'),'attributes':['id',_0x2e02('0x8'),'operator','value']},{'model':_0x2e02('0xb'),'as':_0x2e02('0xc'),'attributes':['id',_0x2e02('0xd'),_0x2e02('0xe'),_0x2e02('0xf'),_0x2e02('0x10'),'data4',_0x2e02('0x11'),'data6',_0x2e02('0x12')]}]},'log':'GetTrigger'});};};