Built motion from commit 497d3d92.|2.5.43
[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 _0xdbed=['user_profile_has_sections','sectionId','lodash','util','../../config/logger','api','bluebird','exports','define','UserProfileSection'];(function(_0x17bbed,_0x14942c){var _0x526358=function(_0x213f53){while(--_0x213f53){_0x17bbed['push'](_0x17bbed['shift']());}};_0x526358(++_0x14942c);}(_0xdbed,0xca));var _0xddbe=function(_0x3a1804,_0x464585){_0x3a1804=_0x3a1804-0x0;var _0x37f5df=_0xdbed[_0x3a1804];return _0x37f5df;};'use strict';var _=require(_0xddbe('0x0'));var util=require(_0xddbe('0x1'));var logger=require(_0xddbe('0x2'))(_0xddbe('0x3'));var moment=require('moment');var BPromise=require(_0xddbe('0x4'));var rp=require('request-promise');var fs=require('fs');var path=require('path');var rimraf=require('rimraf');var config=require('../../config/environment');var attributes=require('./userProfileSection.attributes');module[_0xddbe('0x5')]=function(_0x1f0254,_0x23bfb2){return _0x1f0254[_0xddbe('0x6')](_0xddbe('0x7'),attributes,{'tableName':_0xddbe('0x8'),'paranoid':![],'indexes':[{'name':'compositeIndex','fields':[_0xddbe('0x9'),'userProfileId']}],'timestamps':!![]});};