ea334a4bb499b9c6b078e7ed5cd173c4f08ea412
[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 _0x48e4=['CmCompany','cm_companies','../../config/logger','moment','bluebird','request-promise','path','rimraf','../../config/environment','./cmCompany.attributes','exports','define'];(function(_0x30c381,_0x346ba2){var _0x498163=function(_0x49e37f){while(--_0x49e37f){_0x30c381['push'](_0x30c381['shift']());}};_0x498163(++_0x346ba2);}(_0x48e4,0x19a));var _0x448e=function(_0x485fcd,_0x136c1d){_0x485fcd=_0x485fcd-0x0;var _0x57c931=_0x48e4[_0x485fcd];return _0x57c931;};'use strict';var _=require('lodash');var util=require('util');var logger=require(_0x448e('0x0'))('api');var moment=require(_0x448e('0x1'));var BPromise=require(_0x448e('0x2'));var rp=require(_0x448e('0x3'));var fs=require('fs');var path=require(_0x448e('0x4'));var rimraf=require(_0x448e('0x5'));var config=require(_0x448e('0x6'));var attributes=require(_0x448e('0x7'));module[_0x448e('0x8')]=function(_0x45027e,_0x58397c){return _0x45027e[_0x448e('0x9')](_0x448e('0xa'),attributes,{'tableName':_0x448e('0xb'),'paranoid':![],'indexes':[],'timestamps':!![]});};