3c9cd0649796944e4eee0de92b44e7bcee289982
[motion2.git] / server / api / userProfileSection / userProfileSection.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 _0xa6be=['compositeIndex','userProfileId','util','../../config/logger','moment','bluebird','request-promise','path','exports','define','UserProfileSection','user_profile_has_sections'];(function(_0x4ddc6e,_0x16a7bc){var _0x1e6380=function(_0x3037f5){while(--_0x3037f5){_0x4ddc6e['push'](_0x4ddc6e['shift']());}};_0x1e6380(++_0x16a7bc);}(_0xa6be,0x7a));var _0xea6b=function(_0x49b7b5,_0x488b5b){_0x49b7b5=_0x49b7b5-0x0;var _0x36d18a=_0xa6be[_0x49b7b5];return _0x36d18a;};'use strict';var _=require('lodash');var util=require(_0xea6b('0x0'));var logger=require(_0xea6b('0x1'))('api');var moment=require(_0xea6b('0x2'));var BPromise=require(_0xea6b('0x3'));var rp=require(_0xea6b('0x4'));var fs=require('fs');var path=require(_0xea6b('0x5'));var rimraf=require('rimraf');var config=require('../../config/environment');var attributes=require('./userProfileSection.attributes');module[_0xea6b('0x6')]=function(_0x3dde2c,_0xf3b6c2){return _0x3dde2c[_0xea6b('0x7')](_0xea6b('0x8'),attributes,{'tableName':_0xea6b('0x9'),'paranoid':![],'indexes':[{'name':_0xea6b('0xa'),'fields':['sectionId',_0xea6b('0xb')]}],'timestamps':!![]});};