Built motion from commit e02f907f.|2.6.14
[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 _0xfa55=['lodash','util','bluebird','request-promise','path','rimraf','../../config/environment','tools_automations'];(function(_0x4d3bd6,_0x1be0b0){var _0x574cf6=function(_0x49b147){while(--_0x49b147){_0x4d3bd6['push'](_0x4d3bd6['shift']());}};_0x574cf6(++_0x1be0b0);}(_0xfa55,0x178));var _0x5fa5=function(_0x16c226,_0x4969f1){_0x16c226=_0x16c226-0x0;var _0x1fc134=_0xfa55[_0x16c226];return _0x1fc134;};'use strict';var _=require(_0x5fa5('0x0'));var util=require(_0x5fa5('0x1'));var logger=require('../../config/logger')('api');var moment=require('moment');var BPromise=require(_0x5fa5('0x2'));var rp=require(_0x5fa5('0x3'));var fs=require('fs');var path=require(_0x5fa5('0x4'));var rimraf=require(_0x5fa5('0x5'));var config=require(_0x5fa5('0x6'));var attributes=require('./automation.attributes');module['exports']=function(_0x2b4520,_0x47823c){return _0x2b4520['define']('Automation',attributes,{'tableName':_0x5fa5('0x7'),'paranoid':![],'indexes':[],'timestamps':!![]});};