Built motion from commit (unavailable).|2.5.26
[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 _0x0f49=['../../config/logger','api','moment','path','rimraf','../../config/environment','./automation.attributes','exports','define','Automation','util'];(function(_0x2e30d8,_0x344b2c){var _0x347234=function(_0x5916cf){while(--_0x5916cf){_0x2e30d8['push'](_0x2e30d8['shift']());}};_0x347234(++_0x344b2c);}(_0x0f49,0x8e));var _0x90f4=function(_0x46111d,_0x5d286b){_0x46111d=_0x46111d-0x0;var _0xe82586=_0x0f49[_0x46111d];return _0xe82586;};'use strict';var _=require('lodash');var util=require(_0x90f4('0x0'));var logger=require(_0x90f4('0x1'))(_0x90f4('0x2'));var moment=require(_0x90f4('0x3'));var BPromise=require('bluebird');var rp=require('request-promise');var fs=require('fs');var path=require(_0x90f4('0x4'));var rimraf=require(_0x90f4('0x5'));var config=require(_0x90f4('0x6'));var attributes=require(_0x90f4('0x7'));module[_0x90f4('0x8')]=function(_0x1d9d2f,_0x244b04){return _0x1d9d2f[_0x90f4('0x9')](_0x90f4('0xa'),attributes,{'tableName':'tools_automations','paranoid':![],'indexes':[],'timestamps':!![]});};