Built motion from commit 9c91e9f5.|2.6.29
[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 _0xd9c5=['define','tools_automations','util','../../config/logger','api','moment','bluebird','request-promise','rimraf'];(function(_0x5f51ba,_0x24aad7){var _0x1a6634=function(_0xca070e){while(--_0xca070e){_0x5f51ba['push'](_0x5f51ba['shift']());}};_0x1a6634(++_0x24aad7);}(_0xd9c5,0x107));var _0x5d9c=function(_0x3f4f5b,_0x2fb5c7){_0x3f4f5b=_0x3f4f5b-0x0;var _0x27e020=_0xd9c5[_0x3f4f5b];return _0x27e020;};'use strict';var _=require('lodash');var util=require(_0x5d9c('0x0'));var logger=require(_0x5d9c('0x1'))(_0x5d9c('0x2'));var moment=require(_0x5d9c('0x3'));var BPromise=require(_0x5d9c('0x4'));var rp=require(_0x5d9c('0x5'));var fs=require('fs');var path=require('path');var rimraf=require(_0x5d9c('0x6'));var config=require('../../config/environment');var attributes=require('./automation.attributes');module['exports']=function(_0x3c8695,_0x5c801b){return _0x3c8695[_0x5d9c('0x7')]('Automation',attributes,{'tableName':_0x5d9c('0x8'),'paranoid':![],'indexes':[],'timestamps':!![]});};