Built motion from commit bab6f49e.|2.6.17
[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 _0xabf4=['name','status','Condition','AllConditions','field','operator','value','AnyConditions','Action','Actions','action','data1','data3','data4','data5','data7','../client','getTriggers','GetTrigger'];(function(_0x22a821,_0x188acb){var _0xe80da7=function(_0x5c021c){while(--_0x5c021c){_0x22a821['push'](_0x22a821['shift']());}};_0xe80da7(++_0x188acb);}(_0xabf4,0x6f));var _0x4abf=function(_0x595619,_0x3b7ea6){_0x595619=_0x595619-0x0;var _0x30a1e4=_0xabf4[_0x595619];return _0x30a1e4;};'use strict';var client=require(_0x4abf('0x0'));exports[_0x4abf('0x1')]=function(_0x35444a){return function(_0x4d84a8){return client['Request'](_0x4abf('0x2'),{'options':{'raw':![],'attributes':['id',_0x4abf('0x3'),'channel',_0x4abf('0x4')],'include':[{'model':_0x4abf('0x5'),'as':_0x4abf('0x6'),'attributes':['id',_0x4abf('0x7'),_0x4abf('0x8'),_0x4abf('0x9')]},{'model':_0x4abf('0x5'),'as':_0x4abf('0xa'),'attributes':['id',_0x4abf('0x7'),_0x4abf('0x8'),_0x4abf('0x9')]},{'model':_0x4abf('0xb'),'as':_0x4abf('0xc'),'attributes':['id',_0x4abf('0xd'),_0x4abf('0xe'),'data2',_0x4abf('0xf'),_0x4abf('0x10'),_0x4abf('0x11'),'data6',_0x4abf('0x12')]}]},'log':_0x4abf('0x2')});};};