Built motion from commit 746c7d2a.|2.5.35
[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 _0x05a2=['util','api','moment','request-promise','path','rimraf','./variable.attributes','exports','define','Variable','tools_variables','lodash'];(function(_0x121078,_0xc410bd){var _0x3add67=function(_0x42ec2c){while(--_0x42ec2c){_0x121078['push'](_0x121078['shift']());}};_0x3add67(++_0xc410bd);}(_0x05a2,0x1df));var _0x205a=function(_0x48b9e0,_0x13bfee){_0x48b9e0=_0x48b9e0-0x0;var _0x5a1b0f=_0x05a2[_0x48b9e0];return _0x5a1b0f;};'use strict';var _=require(_0x205a('0x0'));var util=require(_0x205a('0x1'));var logger=require('../../config/logger')(_0x205a('0x2'));var moment=require(_0x205a('0x3'));var BPromise=require('bluebird');var rp=require(_0x205a('0x4'));var fs=require('fs');var path=require(_0x205a('0x5'));var rimraf=require(_0x205a('0x6'));var config=require('../../config/environment');var attributes=require(_0x205a('0x7'));module[_0x205a('0x8')]=function(_0x305bfe,_0xbb7af8){return _0x305bfe[_0x205a('0x9')](_0x205a('0xa'),attributes,{'tableName':_0x205a('0xb'),'paranoid':![],'indexes':[],'timestamps':!![]});};