77162ab1f7e006c4b55ed52b47ff8cc456d5a13d
[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 _0x470f=['path','rimraf','../../config/environment','./migration.attributes','exports','define','migrations','lodash','api'];(function(_0x1a5543,_0x3a6e6e){var _0x440e7f=function(_0x54679f){while(--_0x54679f){_0x1a5543['push'](_0x1a5543['shift']());}};_0x440e7f(++_0x3a6e6e);}(_0x470f,0x115));var _0xf470=function(_0x33e7cd,_0x5a81c8){_0x33e7cd=_0x33e7cd-0x0;var _0x8f2027=_0x470f[_0x33e7cd];return _0x8f2027;};'use strict';var _=require(_0xf470('0x0'));var util=require('util');var logger=require('../../config/logger')(_0xf470('0x1'));var moment=require('moment');var BPromise=require('bluebird');var rp=require('request-promise');var fs=require('fs');var path=require(_0xf470('0x2'));var rimraf=require(_0xf470('0x3'));var config=require(_0xf470('0x4'));var attributes=require(_0xf470('0x5'));module[_0xf470('0x6')]=function(_0x75d90b,_0x47e681){return _0x75d90b[_0xf470('0x7')]('Migration',attributes,{'tableName':_0xf470('0x8'),'paranoid':![],'indexes':[],'timestamps':!![]});};