9b444bbfc6decfbff08d58233aafb2f1b8c260f8
[motion2.git] / server / api / migration / migration.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 _0xee3d=['exports','define','Migration','migrations','lodash','util','../../config/logger','api','moment','request-promise','path','./migration.attributes'];(function(_0x4e676e,_0x2a7c6d){var _0x336a3c=function(_0x4767c4){while(--_0x4767c4){_0x4e676e['push'](_0x4e676e['shift']());}};_0x336a3c(++_0x2a7c6d);}(_0xee3d,0x16c));var _0xdee3=function(_0x41f03c,_0x665763){_0x41f03c=_0x41f03c-0x0;var _0x2a06aa=_0xee3d[_0x41f03c];return _0x2a06aa;};'use strict';var _=require(_0xdee3('0x0'));var util=require(_0xdee3('0x1'));var logger=require(_0xdee3('0x2'))(_0xdee3('0x3'));var moment=require(_0xdee3('0x4'));var BPromise=require('bluebird');var rp=require(_0xdee3('0x5'));var fs=require('fs');var path=require(_0xdee3('0x6'));var rimraf=require('rimraf');var config=require('../../config/environment');var attributes=require(_0xdee3('0x7'));module[_0xdee3('0x8')]=function(_0x243480,_0x25b6c4){return _0x243480[_0xdee3('0x9')](_0xdee3('0xa'),attributes,{'tableName':_0xdee3('0xb'),'paranoid':![],'indexes':[],'timestamps':!![]});};