Built motion from commit (unavailable).|2.5.30
[motion2.git] / server / api / automation / automation.model.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 _0x3f81=['tools_automations','lodash','util','../../config/logger','api','moment','request-promise','path','rimraf','./automation.attributes','exports','define','Automation'];(function(_0x1f791d,_0x438364){var _0x1e643a=function(_0x459028){while(--_0x459028){_0x1f791d['push'](_0x1f791d['shift']());}};_0x1e643a(++_0x438364);}(_0x3f81,0x11f));var _0x13f8=function(_0x1759aa,_0x2aaf9c){_0x1759aa=_0x1759aa-0x0;var _0xed44b8=_0x3f81[_0x1759aa];return _0xed44b8;};'use strict';var _=require(_0x13f8('0x0'));var util=require(_0x13f8('0x1'));var logger=require(_0x13f8('0x2'))(_0x13f8('0x3'));var moment=require(_0x13f8('0x4'));var BPromise=require('bluebird');var rp=require(_0x13f8('0x5'));var fs=require('fs');var path=require(_0x13f8('0x6'));var rimraf=require(_0x13f8('0x7'));var config=require('../../config/environment');var attributes=require(_0x13f8('0x8'));module[_0x13f8('0x9')]=function(_0x46fd9a,_0x1e329f){return _0x46fd9a[_0x13f8('0xa')](_0x13f8('0xb'),attributes,{'tableName':_0x13f8('0xc'),'paranoid':![],'indexes':[],'timestamps':!![]});};