73356331398da9da48d8fac37545a9637d3bb974
[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 _0x40ae=['bluebird','request-promise','path','exports','define','UserProfileSection','user_profile_has_sections','compositeIndex','userProfileId','lodash','util','../../config/logger','moment'];(function(_0x1c8cff,_0x2e2180){var _0x35ff68=function(_0x4e5d55){while(--_0x4e5d55){_0x1c8cff['push'](_0x1c8cff['shift']());}};_0x35ff68(++_0x2e2180);}(_0x40ae,0x98));var _0xe40a=function(_0x5ca026,_0x23e2f9){_0x5ca026=_0x5ca026-0x0;var _0x4f7350=_0x40ae[_0x5ca026];return _0x4f7350;};'use strict';var _=require(_0xe40a('0x0'));var util=require(_0xe40a('0x1'));var logger=require(_0xe40a('0x2'))('api');var moment=require(_0xe40a('0x3'));var BPromise=require(_0xe40a('0x4'));var rp=require(_0xe40a('0x5'));var fs=require('fs');var path=require(_0xe40a('0x6'));var rimraf=require('rimraf');var config=require('../../config/environment');var attributes=require('./userProfileSection.attributes');module[_0xe40a('0x7')]=function(_0x31c56a,_0x4e27a5){return _0x31c56a[_0xe40a('0x8')](_0xe40a('0x9'),attributes,{'tableName':_0xe40a('0xa'),'paranoid':![],'indexes':[{'name':_0xe40a('0xb'),'fields':['sectionId',_0xe40a('0xc')]}],'timestamps':!![]});};