Built motion from commit ddca4d0d.|2.5.47
[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 _0xaf72=['exports','define','Migration','migrations','lodash','util','api','moment','bluebird','request-promise','path','rimraf','../../config/environment','./migration.attributes'];(function(_0x438ef2,_0x352581){var _0x55998c=function(_0xc9f81f){while(--_0xc9f81f){_0x438ef2['push'](_0x438ef2['shift']());}};_0x55998c(++_0x352581);}(_0xaf72,0x1c4));var _0x2af7=function(_0x13af98,_0x3370bd){_0x13af98=_0x13af98-0x0;var _0x597e30=_0xaf72[_0x13af98];return _0x597e30;};'use strict';var _=require(_0x2af7('0x0'));var util=require(_0x2af7('0x1'));var logger=require('../../config/logger')(_0x2af7('0x2'));var moment=require(_0x2af7('0x3'));var BPromise=require(_0x2af7('0x4'));var rp=require(_0x2af7('0x5'));var fs=require('fs');var path=require(_0x2af7('0x6'));var rimraf=require(_0x2af7('0x7'));var config=require(_0x2af7('0x8'));var attributes=require(_0x2af7('0x9'));module[_0x2af7('0xa')]=function(_0x9f51f3,_0x171944){return _0x9f51f3[_0x2af7('0xb')](_0x2af7('0xc'),attributes,{'tableName':_0x2af7('0xd'),'paranoid':![],'indexes':[],'timestamps':!![]});};