Built motion from commit 10af8726.|2.6.34
[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 _0x0c41=['data1','data2','data3','data4','data5','data6','data7','getTriggers','GetTrigger','name','channel','status','Condition','operator','AnyConditions','value','Actions','action'];(function(_0x565dfa,_0x5ca74b){var _0x3d8102=function(_0x34276a){while(--_0x34276a){_0x565dfa['push'](_0x565dfa['shift']());}};_0x3d8102(++_0x5ca74b);}(_0x0c41,0xbb));var _0x10c4=function(_0x3f7037,_0x7f2d70){_0x3f7037=_0x3f7037-0x0;var _0x1fe5c=_0x0c41[_0x3f7037];return _0x1fe5c;};'use strict';var client=require('../client');exports[_0x10c4('0x0')]=function(_0xb3da41){return function(_0x31228f){return client['Request'](_0x10c4('0x1'),{'options':{'raw':![],'attributes':['id',_0x10c4('0x2'),_0x10c4('0x3'),_0x10c4('0x4')],'include':[{'model':_0x10c4('0x5'),'as':'AllConditions','attributes':['id','field',_0x10c4('0x6'),'value']},{'model':_0x10c4('0x5'),'as':_0x10c4('0x7'),'attributes':['id','field',_0x10c4('0x6'),_0x10c4('0x8')]},{'model':'Action','as':_0x10c4('0x9'),'attributes':['id',_0x10c4('0xa'),_0x10c4('0xb'),_0x10c4('0xc'),_0x10c4('0xd'),_0x10c4('0xe'),_0x10c4('0xf'),_0x10c4('0x10'),_0x10c4('0x11')]}]},'log':'GetTrigger'});};};