Built motion from commit (unavailable).|2.5.21
[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 _0x2624=['request-promise','../../config/environment','./template.attributes','exports','define','Template','tools_templates','lodash','util','api','bluebird'];(function(_0x340dc0,_0x2a3031){var _0x48fd67=function(_0x1a4280){while(--_0x1a4280){_0x340dc0['push'](_0x340dc0['shift']());}};_0x48fd67(++_0x2a3031);}(_0x2624,0x1e0));var _0x4262=function(_0x27872c,_0x513775){_0x27872c=_0x27872c-0x0;var _0x332a14=_0x2624[_0x27872c];return _0x332a14;};'use strict';var _=require(_0x4262('0x0'));var util=require(_0x4262('0x1'));var logger=require('../../config/logger')(_0x4262('0x2'));var moment=require('moment');var BPromise=require(_0x4262('0x3'));var rp=require(_0x4262('0x4'));var fs=require('fs');var path=require('path');var rimraf=require('rimraf');var config=require(_0x4262('0x5'));var attributes=require(_0x4262('0x6'));module[_0x4262('0x7')]=function(_0x3b37bd,_0x1d7c3e){return _0x3b37bd[_0x4262('0x8')](_0x4262('0x9'),attributes,{'tableName':_0x4262('0xa'),'paranoid':![],'indexes':[],'timestamps':!![]});};