Built motion from commit e02f907f.|2.6.14
[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 _0xb348=['api','moment','request-promise','path','rimraf','../../config/environment','define','Template','tools_templates','../../config/logger'];(function(_0x3e7b86,_0x3a4c16){var _0x56ef5d=function(_0x29c0f0){while(--_0x29c0f0){_0x3e7b86['push'](_0x3e7b86['shift']());}};_0x56ef5d(++_0x3a4c16);}(_0xb348,0x1e9));var _0x8b34=function(_0x4043f2,_0x43ab15){_0x4043f2=_0x4043f2-0x0;var _0x5d1c80=_0xb348[_0x4043f2];return _0x5d1c80;};'use strict';var _=require('lodash');var util=require('util');var logger=require(_0x8b34('0x0'))(_0x8b34('0x1'));var moment=require(_0x8b34('0x2'));var BPromise=require('bluebird');var rp=require(_0x8b34('0x3'));var fs=require('fs');var path=require(_0x8b34('0x4'));var rimraf=require(_0x8b34('0x5'));var config=require(_0x8b34('0x6'));var attributes=require('./template.attributes');module['exports']=function(_0x2e5496,_0x5cd814){return _0x2e5496[_0x8b34('0x7')](_0x8b34('0x8'),attributes,{'tableName':_0x8b34('0x9'),'paranoid':![],'indexes':[],'timestamps':!![]});};