Built motion from commit (unavailable).|2.5.29
[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 _0xb910=['path','rimraf','../../config/environment','./userProfileSection.attributes','exports','UserProfileSection','user_profile_has_sections','compositeIndex','sectionId','userProfileId','lodash','util','../../config/logger','api','moment','bluebird','request-promise'];(function(_0x200827,_0x4af951){var _0x120047=function(_0x4431de){while(--_0x4431de){_0x200827['push'](_0x200827['shift']());}};_0x120047(++_0x4af951);}(_0xb910,0x12b));var _0x0b91=function(_0x1ae5ab,_0xc5d441){_0x1ae5ab=_0x1ae5ab-0x0;var _0x1ce001=_0xb910[_0x1ae5ab];return _0x1ce001;};'use strict';var _=require(_0x0b91('0x0'));var util=require(_0x0b91('0x1'));var logger=require(_0x0b91('0x2'))(_0x0b91('0x3'));var moment=require(_0x0b91('0x4'));var BPromise=require(_0x0b91('0x5'));var rp=require(_0x0b91('0x6'));var fs=require('fs');var path=require(_0x0b91('0x7'));var rimraf=require(_0x0b91('0x8'));var config=require(_0x0b91('0x9'));var attributes=require(_0x0b91('0xa'));module[_0x0b91('0xb')]=function(_0x295749,_0x1800dc){return _0x295749['define'](_0x0b91('0xc'),attributes,{'tableName':_0x0b91('0xd'),'paranoid':![],'indexes':[{'name':_0x0b91('0xe'),'fields':[_0x0b91('0xf'),_0x0b91('0x10')]}],'timestamps':!![]});};