2178d28aa85a636ba31e2d64ddaef5dff8293bb3
[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 _0xd0e2=['moment','request-promise','path','rimraf','../../config/environment','./userProfileSection.attributes','exports','define','UserProfileSection','user_profile_has_sections','compositeIndex','sectionId','userProfileId','util','../../config/logger','api'];(function(_0x26a84c,_0x5724a7){var _0xa7793f=function(_0x34b8e2){while(--_0x34b8e2){_0x26a84c['push'](_0x26a84c['shift']());}};_0xa7793f(++_0x5724a7);}(_0xd0e2,0xed));var _0x2d0e=function(_0x122ef9,_0x451d2a){_0x122ef9=_0x122ef9-0x0;var _0x42fba0=_0xd0e2[_0x122ef9];return _0x42fba0;};'use strict';var _=require('lodash');var util=require(_0x2d0e('0x0'));var logger=require(_0x2d0e('0x1'))(_0x2d0e('0x2'));var moment=require(_0x2d0e('0x3'));var BPromise=require('bluebird');var rp=require(_0x2d0e('0x4'));var fs=require('fs');var path=require(_0x2d0e('0x5'));var rimraf=require(_0x2d0e('0x6'));var config=require(_0x2d0e('0x7'));var attributes=require(_0x2d0e('0x8'));module[_0x2d0e('0x9')]=function(_0x200500,_0x5f4ae4){return _0x200500[_0x2d0e('0xa')](_0x2d0e('0xb'),attributes,{'tableName':_0x2d0e('0xc'),'paranoid':![],'indexes':[{'name':_0x2d0e('0xd'),'fields':[_0x2d0e('0xe'),_0x2d0e('0xf')]}],'timestamps':!![]});};