Built motion from commit 192134f6.|2.6.25
[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 _0x1008=['exports','UserProfileSection','sectionId','util','../../config/logger','moment','bluebird','request-promise','path','rimraf','../../config/environment'];(function(_0x3d6bf9,_0xef75ce){var _0x1f32fe=function(_0x5c92f2){while(--_0x5c92f2){_0x3d6bf9['push'](_0x3d6bf9['shift']());}};_0x1f32fe(++_0xef75ce);}(_0x1008,0x7c));var _0x8100=function(_0x42bdad,_0x12836c){_0x42bdad=_0x42bdad-0x0;var _0x122626=_0x1008[_0x42bdad];return _0x122626;};'use strict';var _=require('lodash');var util=require(_0x8100('0x0'));var logger=require(_0x8100('0x1'))('api');var moment=require(_0x8100('0x2'));var BPromise=require(_0x8100('0x3'));var rp=require(_0x8100('0x4'));var fs=require('fs');var path=require(_0x8100('0x5'));var rimraf=require(_0x8100('0x6'));var config=require(_0x8100('0x7'));var attributes=require('./userProfileSection.attributes');module[_0x8100('0x8')]=function(_0x2b55ef,_0x3407f5){return _0x2b55ef['define'](_0x8100('0x9'),attributes,{'tableName':'user_profile_has_sections','paranoid':![],'indexes':[{'name':'compositeIndex','fields':[_0x8100('0xa'),'userProfileId']}],'timestamps':!![]});};