508c6a3d4e32734dcb03c5149c637b1813a8b765
[motion2.git] / server / api / variable / variable.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 _0x0e08=['request-promise','path','rimraf','../../config/environment','./variable.attributes','define','Variable','tools_variables','util','../../config/logger','api','moment','bluebird'];(function(_0x11828b,_0x3d181b){var _0x9fbc5b=function(_0x9c8a27){while(--_0x9c8a27){_0x11828b['push'](_0x11828b['shift']());}};_0x9fbc5b(++_0x3d181b);}(_0x0e08,0x70));var _0x80e0=function(_0x22847b,_0x3264a6){_0x22847b=_0x22847b-0x0;var _0x348e4c=_0x0e08[_0x22847b];return _0x348e4c;};'use strict';var _=require('lodash');var util=require(_0x80e0('0x0'));var logger=require(_0x80e0('0x1'))(_0x80e0('0x2'));var moment=require(_0x80e0('0x3'));var BPromise=require(_0x80e0('0x4'));var rp=require(_0x80e0('0x5'));var fs=require('fs');var path=require(_0x80e0('0x6'));var rimraf=require(_0x80e0('0x7'));var config=require(_0x80e0('0x8'));var attributes=require(_0x80e0('0x9'));module['exports']=function(_0xf0ae4a,_0x471281){return _0xf0ae4a[_0x80e0('0xa')](_0x80e0('0xb'),attributes,{'tableName':_0x80e0('0xc'),'paranoid':![],'indexes':[],'timestamps':!![]});};