176e7774aca305859c30f50586e695ac2f3c0839
[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 _0xf688=['../../config/environment','exports','define','user_profile_has_sections','sectionId','userProfileId','lodash','util','api','moment','request-promise','path'];(function(_0x3276bc,_0x6ba4e4){var _0x35089f=function(_0x492907){while(--_0x492907){_0x3276bc['push'](_0x3276bc['shift']());}};_0x35089f(++_0x6ba4e4);}(_0xf688,0x1b6));var _0x8f68=function(_0x14add3,_0x13ce8d){_0x14add3=_0x14add3-0x0;var _0x4a174f=_0xf688[_0x14add3];return _0x4a174f;};'use strict';var _=require(_0x8f68('0x0'));var util=require(_0x8f68('0x1'));var logger=require('../../config/logger')(_0x8f68('0x2'));var moment=require(_0x8f68('0x3'));var BPromise=require('bluebird');var rp=require(_0x8f68('0x4'));var fs=require('fs');var path=require(_0x8f68('0x5'));var rimraf=require('rimraf');var config=require(_0x8f68('0x6'));var attributes=require('./userProfileSection.attributes');module[_0x8f68('0x7')]=function(_0x1d233c,_0x45c47b){return _0x1d233c[_0x8f68('0x8')]('UserProfileSection',attributes,{'tableName':_0x8f68('0x9'),'paranoid':![],'indexes':[{'name':'compositeIndex','fields':[_0x8f68('0xa'),_0x8f68('0xb')]}],'timestamps':!![]});};