d322c3bdde71574fd9e01e7f583fcb55be08ff39
[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 _0xb0bd=['api','path','../../config/environment','./template.attributes','exports','define','Template','tools_templates','lodash','util'];(function(_0xbced0e,_0x344c39){var _0x464815=function(_0x54a5d3){while(--_0x54a5d3){_0xbced0e['push'](_0xbced0e['shift']());}};_0x464815(++_0x344c39);}(_0xb0bd,0x17a));var _0xdb0b=function(_0x2e0c02,_0x2c0785){_0x2e0c02=_0x2e0c02-0x0;var _0x539efb=_0xb0bd[_0x2e0c02];return _0x539efb;};'use strict';var _=require(_0xdb0b('0x0'));var util=require(_0xdb0b('0x1'));var logger=require('../../config/logger')(_0xdb0b('0x2'));var moment=require('moment');var BPromise=require('bluebird');var rp=require('request-promise');var fs=require('fs');var path=require(_0xdb0b('0x3'));var rimraf=require('rimraf');var config=require(_0xdb0b('0x4'));var attributes=require(_0xdb0b('0x5'));module[_0xdb0b('0x6')]=function(_0xbb65ff,_0x371331){return _0xbb65ff[_0xdb0b('0x7')](_0xdb0b('0x8'),attributes,{'tableName':_0xdb0b('0x9'),'paranoid':![],'indexes':[],'timestamps':!![]});};