fe66e1fe1ab0e15aebee5e7bd0334a580e25422f
[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 _0xfb6f=['../../config/environment','./variable.attributes','define','tools_variables','lodash','api','bluebird','request-promise','path','rimraf'];(function(_0x17bfdf,_0x76cb9){var _0x5cd9e1=function(_0x48843b){while(--_0x48843b){_0x17bfdf['push'](_0x17bfdf['shift']());}};_0x5cd9e1(++_0x76cb9);}(_0xfb6f,0x14e));var _0xffb6=function(_0x18e796,_0xa672e6){_0x18e796=_0x18e796-0x0;var _0x17e045=_0xfb6f[_0x18e796];return _0x17e045;};'use strict';var _=require(_0xffb6('0x0'));var util=require('util');var logger=require('../../config/logger')(_0xffb6('0x1'));var moment=require('moment');var BPromise=require(_0xffb6('0x2'));var rp=require(_0xffb6('0x3'));var fs=require('fs');var path=require(_0xffb6('0x4'));var rimraf=require(_0xffb6('0x5'));var config=require(_0xffb6('0x6'));var attributes=require(_0xffb6('0x7'));module['exports']=function(_0x4ca5dc,_0x3ede07){return _0x4ca5dc[_0xffb6('0x8')]('Variable',attributes,{'tableName':_0xffb6('0x9'),'paranoid':![],'indexes':[],'timestamps':!![]});};