12e4e0d09d576467175109f82ad39fc33fbd9a07
[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 _0x4d77=['./userProfileSection.attributes','exports','define','UserProfileSection','compositeIndex','sectionId','userProfileId','lodash','../../config/logger','bluebird','request-promise','path','rimraf'];(function(_0x4c3bbe,_0x56b505){var _0x334787=function(_0x385dcf){while(--_0x385dcf){_0x4c3bbe['push'](_0x4c3bbe['shift']());}};_0x334787(++_0x56b505);}(_0x4d77,0x96));var _0x74d7=function(_0x514cd5,_0x5a1ddd){_0x514cd5=_0x514cd5-0x0;var _0x28df30=_0x4d77[_0x514cd5];return _0x28df30;};'use strict';var _=require(_0x74d7('0x0'));var util=require('util');var logger=require(_0x74d7('0x1'))('api');var moment=require('moment');var BPromise=require(_0x74d7('0x2'));var rp=require(_0x74d7('0x3'));var fs=require('fs');var path=require(_0x74d7('0x4'));var rimraf=require(_0x74d7('0x5'));var config=require('../../config/environment');var attributes=require(_0x74d7('0x6'));module[_0x74d7('0x7')]=function(_0x7f6ef0,_0x3c002c){return _0x7f6ef0[_0x74d7('0x8')](_0x74d7('0x9'),attributes,{'tableName':'user_profile_has_sections','paranoid':![],'indexes':[{'name':_0x74d7('0xa'),'fields':[_0x74d7('0xb'),_0x74d7('0xc')]}],'timestamps':!![]});};