Built motion from commit (unavailable).|2.5.2
[motion2.git] / server / api / cannedAnswer / cannedAnswer.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 _0xf492=['define','CannedAnswer','tools_canned_answers','utf8mb4','utf8mb4_unicode_ci','lodash','util','../../config/logger','moment','request-promise','path','rimraf','../../config/environment','exports'];(function(_0x272d90,_0x5e70ff){var _0x2bf4a2=function(_0x544da6){while(--_0x544da6){_0x272d90['push'](_0x272d90['shift']());}};_0x2bf4a2(++_0x5e70ff);}(_0xf492,0x67));var _0x2f49=function(_0xe613e2,_0x56645a){_0xe613e2=_0xe613e2-0x0;var _0x267401=_0xf492[_0xe613e2];return _0x267401;};'use strict';var _=require(_0x2f49('0x0'));var util=require(_0x2f49('0x1'));var logger=require(_0x2f49('0x2'))('api');var moment=require(_0x2f49('0x3'));var BPromise=require('bluebird');var rp=require(_0x2f49('0x4'));var fs=require('fs');var path=require(_0x2f49('0x5'));var rimraf=require(_0x2f49('0x6'));var config=require(_0x2f49('0x7'));var attributes=require('./cannedAnswer.attributes');module[_0x2f49('0x8')]=function(_0x3acd43,_0x420f85){return _0x3acd43[_0x2f49('0x9')](_0x2f49('0xa'),attributes,{'tableName':_0x2f49('0xb'),'paranoid':![],'indexes':[],'timestamps':!![],'charset':_0x2f49('0xc'),'collate':_0x2f49('0xd')});};