545e7f27df2f299b623a46398ad9819e2bfec114
[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 _0xdf92=['moment','bluebird','request-promise','path','rimraf','../../config/environment','./userProfileSection.attributes','exports','define','UserProfileSection','user_profile_has_sections','compositeIndex','sectionId','lodash','api'];(function(_0x1541ad,_0x32850f){var _0x22c617=function(_0x31c351){while(--_0x31c351){_0x1541ad['push'](_0x1541ad['shift']());}};_0x22c617(++_0x32850f);}(_0xdf92,0x10c));var _0x2df9=function(_0x22442f,_0x2911b0){_0x22442f=_0x22442f-0x0;var _0x408569=_0xdf92[_0x22442f];return _0x408569;};'use strict';var _=require(_0x2df9('0x0'));var util=require('util');var logger=require('../../config/logger')(_0x2df9('0x1'));var moment=require(_0x2df9('0x2'));var BPromise=require(_0x2df9('0x3'));var rp=require(_0x2df9('0x4'));var fs=require('fs');var path=require(_0x2df9('0x5'));var rimraf=require(_0x2df9('0x6'));var config=require(_0x2df9('0x7'));var attributes=require(_0x2df9('0x8'));module[_0x2df9('0x9')]=function(_0x125317,_0x5b6e79){return _0x125317[_0x2df9('0xa')](_0x2df9('0xb'),attributes,{'tableName':_0x2df9('0xc'),'paranoid':![],'indexes':[{'name':_0x2df9('0xd'),'fields':[_0x2df9('0xe'),'userProfileId']}],'timestamps':!![]});};