Built motion from commit eddce310.|2.6.12
[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 _0xed4e=['data7','GetTrigger','name','channel','status','field','Condition','operator','value','Action','Actions','action','data2','data3','data5','data6'];(function(_0x1ea19c,_0x499bb5){var _0x387142=function(_0x1c69b6){while(--_0x1c69b6){_0x1ea19c['push'](_0x1ea19c['shift']());}};_0x387142(++_0x499bb5);}(_0xed4e,0x111));var _0xeed4=function(_0x4fe693,_0x4cf2ba){_0x4fe693=_0x4fe693-0x0;var _0x4dde2a=_0xed4e[_0x4fe693];return _0x4dde2a;};'use strict';var client=require('../client');exports['getTriggers']=function(_0x12694a){return function(_0x1125c0){return client['Request'](_0xeed4('0x0'),{'options':{'raw':![],'attributes':['id',_0xeed4('0x1'),_0xeed4('0x2'),_0xeed4('0x3')],'include':[{'model':'Condition','as':'AllConditions','attributes':['id',_0xeed4('0x4'),'operator','value']},{'model':_0xeed4('0x5'),'as':'AnyConditions','attributes':['id',_0xeed4('0x4'),_0xeed4('0x6'),_0xeed4('0x7')]},{'model':_0xeed4('0x8'),'as':_0xeed4('0x9'),'attributes':['id',_0xeed4('0xa'),'data1',_0xeed4('0xb'),_0xeed4('0xc'),'data4',_0xeed4('0xd'),_0xeed4('0xe'),_0xeed4('0xf')]}]},'log':_0xeed4('0x0')});};};