Built motion from commit e0fa946e.|2.6.5
[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 _0x4f48=['Request','GetTrigger','name','channel','status','Condition','field','operator','value','AnyConditions','Action','Actions','data1','data2','data3','data4','data5','data6','data7','../client','getTriggers'];(function(_0x458566,_0x491b9d){var _0x3744f1=function(_0x129cbc){while(--_0x129cbc){_0x458566['push'](_0x458566['shift']());}};_0x3744f1(++_0x491b9d);}(_0x4f48,0xd0));var _0x84f4=function(_0x2e16ad,_0x4aa27e){_0x2e16ad=_0x2e16ad-0x0;var _0x4cc6de=_0x4f48[_0x2e16ad];return _0x4cc6de;};'use strict';var client=require(_0x84f4('0x0'));exports[_0x84f4('0x1')]=function(_0x18860c){return function(_0x226b68){return client[_0x84f4('0x2')](_0x84f4('0x3'),{'options':{'raw':![],'attributes':['id',_0x84f4('0x4'),_0x84f4('0x5'),_0x84f4('0x6')],'include':[{'model':_0x84f4('0x7'),'as':'AllConditions','attributes':['id',_0x84f4('0x8'),_0x84f4('0x9'),_0x84f4('0xa')]},{'model':_0x84f4('0x7'),'as':_0x84f4('0xb'),'attributes':['id','field','operator',_0x84f4('0xa')]},{'model':_0x84f4('0xc'),'as':_0x84f4('0xd'),'attributes':['id','action',_0x84f4('0xe'),_0x84f4('0xf'),_0x84f4('0x10'),_0x84f4('0x11'),_0x84f4('0x12'),_0x84f4('0x13'),_0x84f4('0x14')]}]},'log':_0x84f4('0x3')});};};