cf6300dddda0d151ecf586ca99a517214ce09a60
[motion2.git] / server / api / setting / setting.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 _0x79e2=['moment','bluebird','request-promise','rimraf','../../config/environment','./setting.attributes','exports','define','Setting','settings','lodash','util'];(function(_0x45c764,_0x5f13ef){var _0x82d5b2=function(_0x4a8cae){while(--_0x4a8cae){_0x45c764['push'](_0x45c764['shift']());}};_0x82d5b2(++_0x5f13ef);}(_0x79e2,0xbe));var _0x279e=function(_0x297aa6,_0x2f8f03){_0x297aa6=_0x297aa6-0x0;var _0x45f0ba=_0x79e2[_0x297aa6];return _0x45f0ba;};'use strict';var _=require(_0x279e('0x0'));var util=require(_0x279e('0x1'));var logger=require('../../config/logger')('api');var moment=require(_0x279e('0x2'));var BPromise=require(_0x279e('0x3'));var rp=require(_0x279e('0x4'));var fs=require('fs');var path=require('path');var rimraf=require(_0x279e('0x5'));var config=require(_0x279e('0x6'));var attributes=require(_0x279e('0x7'));module[_0x279e('0x8')]=function(_0x549a19,_0x31d315){return _0x549a19[_0x279e('0x9')](_0x279e('0xa'),attributes,{'tableName':_0x279e('0xb'),'paranoid':![],'indexes':[],'timestamps':!![]});};