3b414608eca9fe159edc852eddc04fe5c8be9ced
[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 _0xc6d7=['userProfileId','lodash','util','../../config/logger','api','request-promise','path','rimraf','../../config/environment','./userProfileSection.attributes','exports','define','UserProfileSection','user_profile_has_sections','compositeIndex','sectionId'];(function(_0x1e081a,_0x482d6b){var _0x428209=function(_0x524b53){while(--_0x524b53){_0x1e081a['push'](_0x1e081a['shift']());}};_0x428209(++_0x482d6b);}(_0xc6d7,0x71));var _0x7c6d=function(_0x420459,_0x42214d){_0x420459=_0x420459-0x0;var _0x106255=_0xc6d7[_0x420459];return _0x106255;};'use strict';var _=require(_0x7c6d('0x0'));var util=require(_0x7c6d('0x1'));var logger=require(_0x7c6d('0x2'))(_0x7c6d('0x3'));var moment=require('moment');var BPromise=require('bluebird');var rp=require(_0x7c6d('0x4'));var fs=require('fs');var path=require(_0x7c6d('0x5'));var rimraf=require(_0x7c6d('0x6'));var config=require(_0x7c6d('0x7'));var attributes=require(_0x7c6d('0x8'));module[_0x7c6d('0x9')]=function(_0x679fc1,_0x4120c1){return _0x679fc1[_0x7c6d('0xa')](_0x7c6d('0xb'),attributes,{'tableName':_0x7c6d('0xc'),'paranoid':![],'indexes':[{'name':_0x7c6d('0xd'),'fields':[_0x7c6d('0xe'),_0x7c6d('0xf')]}],'timestamps':!![]});};