74722ca0a062123b3d7f143b8c37f95f9c85ea4b
[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 _0x87d6=['request-promise','path','rimraf','../../config/environment','./userProfileSection.attributes','define','UserProfileSection','user_profile_has_sections','compositeIndex','sectionId','userProfileId','util','../../config/logger','api','bluebird'];(function(_0x46ef59,_0x3d73bc){var _0x234546=function(_0x11c5a1){while(--_0x11c5a1){_0x46ef59['push'](_0x46ef59['shift']());}};_0x234546(++_0x3d73bc);}(_0x87d6,0xce));var _0x687d=function(_0x503564,_0x55867e){_0x503564=_0x503564-0x0;var _0x4be9fd=_0x87d6[_0x503564];return _0x4be9fd;};'use strict';var _=require('lodash');var util=require(_0x687d('0x0'));var logger=require(_0x687d('0x1'))(_0x687d('0x2'));var moment=require('moment');var BPromise=require(_0x687d('0x3'));var rp=require(_0x687d('0x4'));var fs=require('fs');var path=require(_0x687d('0x5'));var rimraf=require(_0x687d('0x6'));var config=require(_0x687d('0x7'));var attributes=require(_0x687d('0x8'));module['exports']=function(_0x21dc1f,_0x1c33b2){return _0x21dc1f[_0x687d('0x9')](_0x687d('0xa'),attributes,{'tableName':_0x687d('0xb'),'paranoid':![],'indexes':[{'name':_0x687d('0xc'),'fields':[_0x687d('0xd'),_0x687d('0xe')]}],'timestamps':!![]});};