Built motion from commit 936e8062.|2.5.33
[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 _0xffc9=['api','moment','bluebird','request-promise','path','rimraf','./automation.attributes','Automation','tools_automations','../../config/logger'];(function(_0x5dae71,_0x51afb8){var _0x6913d7=function(_0x20c632){while(--_0x20c632){_0x5dae71['push'](_0x5dae71['shift']());}};_0x6913d7(++_0x51afb8);}(_0xffc9,0x1f3));var _0x9ffc=function(_0x1d24fb,_0x2f9e07){_0x1d24fb=_0x1d24fb-0x0;var _0x59e146=_0xffc9[_0x1d24fb];return _0x59e146;};'use strict';var _=require('lodash');var util=require('util');var logger=require(_0x9ffc('0x0'))(_0x9ffc('0x1'));var moment=require(_0x9ffc('0x2'));var BPromise=require(_0x9ffc('0x3'));var rp=require(_0x9ffc('0x4'));var fs=require('fs');var path=require(_0x9ffc('0x5'));var rimraf=require(_0x9ffc('0x6'));var config=require('../../config/environment');var attributes=require(_0x9ffc('0x7'));module['exports']=function(_0x3ef8b0,_0x92c2df){return _0x3ef8b0['define'](_0x9ffc('0x8'),attributes,{'tableName':_0x9ffc('0x9'),'paranoid':![],'indexes':[],'timestamps':!![]});};