Built motion from commit (unavailable).|2.5.13
[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 _0x09be=['exports','define','UserProfileSection','sectionId','userProfileId','lodash','util','api','request-promise','../../config/environment','./userProfileSection.attributes'];(function(_0x5d78f5,_0x14011a){var _0x225e1b=function(_0x221b02){while(--_0x221b02){_0x5d78f5['push'](_0x5d78f5['shift']());}};_0x225e1b(++_0x14011a);}(_0x09be,0xc0));var _0xe09b=function(_0x14add3,_0x13ce8d){_0x14add3=_0x14add3-0x0;var _0x4a174f=_0x09be[_0x14add3];return _0x4a174f;};'use strict';var _=require(_0xe09b('0x0'));var util=require(_0xe09b('0x1'));var logger=require('../../config/logger')(_0xe09b('0x2'));var moment=require('moment');var BPromise=require('bluebird');var rp=require(_0xe09b('0x3'));var fs=require('fs');var path=require('path');var rimraf=require('rimraf');var config=require(_0xe09b('0x4'));var attributes=require(_0xe09b('0x5'));module[_0xe09b('0x6')]=function(_0x212fc7,_0x1bb05c){return _0x212fc7[_0xe09b('0x7')](_0xe09b('0x8'),attributes,{'tableName':'user_profile_has_sections','paranoid':![],'indexes':[{'name':'compositeIndex','fields':[_0xe09b('0x9'),_0xe09b('0xa')]}],'timestamps':!![]});};