596a5437bd25e66e8280ac5c2cfbcaf4770f8489
[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 _0x606b=['lodash','bluebird','../../config/environment','./variable.attributes','define','Variable','tools_variables'];(function(_0x3e6729,_0x16d4af){var _0x535bcd=function(_0x5e6c5f){while(--_0x5e6c5f){_0x3e6729['push'](_0x3e6729['shift']());}};_0x535bcd(++_0x16d4af);}(_0x606b,0x173));var _0xb606=function(_0x3f84b9,_0x21db9e){_0x3f84b9=_0x3f84b9-0x0;var _0x52cd38=_0x606b[_0x3f84b9];return _0x52cd38;};'use strict';var _=require(_0xb606('0x0'));var util=require('util');var logger=require('../../config/logger')('api');var moment=require('moment');var BPromise=require(_0xb606('0x1'));var rp=require('request-promise');var fs=require('fs');var path=require('path');var rimraf=require('rimraf');var config=require(_0xb606('0x2'));var attributes=require(_0xb606('0x3'));module['exports']=function(_0x2febf9,_0x3f3f2f){return _0x2febf9[_0xb606('0x4')](_0xb606('0x5'),attributes,{'tableName':_0xb606('0x6'),'paranoid':![],'indexes':[],'timestamps':!![]});};