Built motion from commit a61a4a20.|2.5.46
[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 _0x5f64=['cm_companies','lodash','util','bluebird','request-promise','path','../../config/environment','exports','define','CmCompany'];(function(_0x16a317,_0x43d3f7){var _0x1ef1cf=function(_0x35baff){while(--_0x35baff){_0x16a317['push'](_0x16a317['shift']());}};_0x1ef1cf(++_0x43d3f7);}(_0x5f64,0xb5));var _0x45f6=function(_0x17e771,_0x55fd17){_0x17e771=_0x17e771-0x0;var _0x1f3a6d=_0x5f64[_0x17e771];return _0x1f3a6d;};'use strict';var _=require(_0x45f6('0x0'));var util=require(_0x45f6('0x1'));var logger=require('../../config/logger')('api');var moment=require('moment');var BPromise=require(_0x45f6('0x2'));var rp=require(_0x45f6('0x3'));var fs=require('fs');var path=require(_0x45f6('0x4'));var rimraf=require('rimraf');var config=require(_0x45f6('0x5'));var attributes=require('./cmCompany.attributes');module[_0x45f6('0x6')]=function(_0x1c1849,_0xcf6ca3){return _0x1c1849[_0x45f6('0x7')](_0x45f6('0x8'),attributes,{'tableName':_0x45f6('0x9'),'paranoid':![],'indexes':[],'timestamps':!![]});};