8ed3b53178dec9b24f29891e765610c0b3be3d90
[motion2.git] / server / api / cmCompany / cmCompany.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 _0x8610=['util','../../config/logger','api','moment','bluebird','request-promise','rimraf','./cmCompany.attributes','exports','define','CmCompany','cm_companies','lodash'];(function(_0x77d310,_0x2b2fe7){var _0x2cdce4=function(_0xbaa481){while(--_0xbaa481){_0x77d310['push'](_0x77d310['shift']());}};_0x2cdce4(++_0x2b2fe7);}(_0x8610,0x151));var _0x0861=function(_0x1b516b,_0x5acb23){_0x1b516b=_0x1b516b-0x0;var _0x49d33a=_0x8610[_0x1b516b];return _0x49d33a;};'use strict';var _=require(_0x0861('0x0'));var util=require(_0x0861('0x1'));var logger=require(_0x0861('0x2'))(_0x0861('0x3'));var moment=require(_0x0861('0x4'));var BPromise=require(_0x0861('0x5'));var rp=require(_0x0861('0x6'));var fs=require('fs');var path=require('path');var rimraf=require(_0x0861('0x7'));var config=require('../../config/environment');var attributes=require(_0x0861('0x8'));module[_0x0861('0x9')]=function(_0x2b9acc,_0x24aced){return _0x2b9acc[_0x0861('0xa')](_0x0861('0xb'),attributes,{'tableName':_0x0861('0xc'),'paranoid':![],'indexes':[],'timestamps':!![]});};