1432f41e0bef8271d0a4fe915ed80811d22f46df
[motion2.git] / server / api / template / template.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 _0x39a7=['path','rimraf','../../config/environment','./template.attributes','exports','define','tools_templates','util','../../config/logger','api','moment','request-promise'];(function(_0x199939,_0x3d3cb9){var _0x1522b6=function(_0x28fe8a){while(--_0x28fe8a){_0x199939['push'](_0x199939['shift']());}};_0x1522b6(++_0x3d3cb9);}(_0x39a7,0x1e7));var _0x739a=function(_0x488b85,_0x10ec23){_0x488b85=_0x488b85-0x0;var _0x59d07d=_0x39a7[_0x488b85];return _0x59d07d;};'use strict';var _=require('lodash');var util=require(_0x739a('0x0'));var logger=require(_0x739a('0x1'))(_0x739a('0x2'));var moment=require(_0x739a('0x3'));var BPromise=require('bluebird');var rp=require(_0x739a('0x4'));var fs=require('fs');var path=require(_0x739a('0x5'));var rimraf=require(_0x739a('0x6'));var config=require(_0x739a('0x7'));var attributes=require(_0x739a('0x8'));module[_0x739a('0x9')]=function(_0x1d8e7a,_0x20830f){return _0x1d8e7a[_0x739a('0xa')]('Template',attributes,{'tableName':_0x739a('0xb'),'paranoid':![],'indexes':[],'timestamps':!![]});};