8c0bfa4016c633e9b65bc74483e51faa3353ecd3
[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 _0x699f=['util','../../config/logger','api','moment','request-promise','path','../../config/environment','./automation.attributes','lodash'];(function(_0x35b7d4,_0x5a5c43){var _0x4e8cee=function(_0x66859c){while(--_0x66859c){_0x35b7d4['push'](_0x35b7d4['shift']());}};_0x4e8cee(++_0x5a5c43);}(_0x699f,0x167));var _0xf699=function(_0x1a87b3,_0x45ba68){_0x1a87b3=_0x1a87b3-0x0;var _0x37e84d=_0x699f[_0x1a87b3];return _0x37e84d;};'use strict';var _=require(_0xf699('0x0'));var util=require(_0xf699('0x1'));var logger=require(_0xf699('0x2'))(_0xf699('0x3'));var moment=require(_0xf699('0x4'));var BPromise=require('bluebird');var rp=require(_0xf699('0x5'));var fs=require('fs');var path=require(_0xf699('0x6'));var rimraf=require('rimraf');var config=require(_0xf699('0x7'));var attributes=require(_0xf699('0x8'));module['exports']=function(_0x57583c,_0x1ade45){return _0x57583c['define']('Automation',attributes,{'tableName':'tools_automations','paranoid':![],'indexes':[],'timestamps':!![]});};